Type Aliases
The following type aliases are available globally.
-
Fetch task completion handler.
The completion handler takes a single
Result
argument, which is either a succesfuly parsedArxivResponse
or an error, if one occurs. The error is eitherArxivURLError
,ArxivServerError
,ArxivParserError
orArxivAPIError
.Declaration
Swift
public typealias ArxivFetchTaskCompetionHandler = (Result<ArxivResponse, Error>) -> ()
-
A keypath for storing fetch task results.
The result is either a succesfuly parsed
ArxivResponse
or an error, if one occurs. The error is eitherArxivURLError
,ArxivServerError
,ArxivParserError
orArxivAPIError
.Declaration
Swift
public typealias ArxivFetchResultKeypath<Root> = ReferenceWritableKeyPath<Root, Result<ArxivResponse, Error>>