Classes
The following classes are available globally.
-
An NSOperation that executes the
Requestable
asynchronously onstart()
or when added to a NSOperationQueueNote
Auto Retry is available only inDataRequestEventuallyOperation
.Declaration
Swift
open class DataRequestOperation<R: Requestable>: Operation
-
A
DataRequestOperation
, when added to anNSOperationQueue
moitors the network reachability and executes theRequestable
when the network is reachable.Note
Do not callstart()
directly instead add it to anNSOperationQueue
because callingstart()
will begin the execution of work regardless of network reachability which is equivalant toDataRequestOperation
.Declaration
Swift
open class DataRequestEventuallyOperation<R: Requestable>: DataRequestOperation<R>