DataRequestOperation

open class DataRequestOperation<R: Requestable>: Operation

An NSOperation that executes the Requestable asynchronously on start() or when added to a NSOperationQueue

Note

Auto Retry is available only in DataRequestEventuallyOperation.
  • A Boolean value indicating whether the operation can be performed now. (read-only)

    Declaration

    Swift

    open override internal(set) var isReady: Bool
  • A Boolean value indicating whether the operation is currently executing. (read-only)

    Declaration

    Swift

    open override fileprivate(set) var isExecuting: Bool
  • A Boolean value indicating whether the operation has been cancelled. (read-only)

    Declaration

    Swift

    open override fileprivate(set) var isCancelled: Bool
  • A Boolean value indicating whether the operation has finished executing its task. (read-only)

    Declaration

    Swift

    open override fileprivate(set) var isFinished: Bool
  • Begins the execution of the operation.

    Declaration

    Swift

    open override func start()
  • Advises the operation object that it should stop executing its request.

    Declaration

    Swift

    open override func cancel()