RequestOperation

public class RequestOperation<R: Requestable>: BaseOperation

An NSOperation that executes the Requestable asynchronously or when added to a NSOperationQueue

  • The underlying Alamofire.DataRequest.

    Declaration

    Swift

    public lazy var request: DataRequest = { return requestable.request() }()
  • A boolean value true indicating the operation executes its task asynchronously.

    Declaration

    Swift

    override public var isAsynchronous: Bool
  • Starts the request.

    Declaration

    Swift

    override public func main()
  • Cancels the request.

    Declaration

    Swift

    override public func cancel()