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