AOperation

open class AOperation<R: Configurable>: Operation

An NSOperation base class for all request operations

  • The underlying respect respective to requestable.

    Declaration

    Swift

    public private(set) var request: Request!
  • Starts the request.

    Declaration

    Swift

    override open func main()
  • Cancels the request.

    Declaration

    Swift

    override open func cancel()
  • 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 internal(set) var isExecuting: Bool
  • A Boolean value indicating whether the operation has been cancelled. (read-only)

    Declaration

    Swift

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

    Declaration

    Swift

    open override internal(set) var isFinished: Bool
  • A boolean value true indicating the operation executes its task asynchronously.

    Declaration

    Swift

    override open var isAsynchronous: Bool