NetworkOperation
open class NetworkOperation<R> : Operation, Cancellable where R : BaseRequestable
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
open override func main() -
Cancels the request.
Declaration
Swift
open override func cancel() -
Undocumented
Declaration
Swift
open func copy() -> NetworkOperation
-
A Boolean value indicating whether the operation can be performed now. (read-only)
Declaration
Swift
open internal(set) override var isReady: Bool { get set } -
A Boolean value indicating whether the operation is currently executing. (read-only)
Declaration
Swift
open internal(set) override var isExecuting: Bool { get set } -
A Boolean value indicating whether the operation has been cancelled. (read-only)
Declaration
Swift
open internal(set) override var isCancelled: Bool { get set } -
A Boolean value indicating whether the operation has finished executing its task. (read-only)
Declaration
Swift
open internal(set) override var isFinished: Bool { get set } -
A boolean value
trueindicating the operation executes its task asynchronously.Declaration
Swift
open override var isAsynchronous: Bool { get }
NetworkOperation Class Reference