Pollable
public protocol Pollable
Represents a Pollable
that is associated with Requestable
.
-
The
poll
.Declaration
Swift
var poll: Poll { get }
-
Called to check if it requires retry even if the request succeeded.
Declaration
Swift
func shouldPoll<R>(_ request: Request, requestable: R, response: DataResponse<R.Response>) -> Bool where R : BaseRequestable
-
poll
Default implementationDefault Implementation
Poll.default
Declaration
Swift
public var poll: Poll { get }
-
shouldPoll(_:requestable:response:)
Default implementationDefault Implementation
false
Declaration
Swift
public func shouldPoll<R>(_ request: Request, requestable: R, response: DataResponse<R.Response>) -> Bool where R : BaseRequestable