NetworkOperation
public protocol NetworkOperation : Cancellable
Base interface for a network operation.
-
Unique identifier of the operation.
Declaration
Swift
var id: Int { get }
-
Current state of the operation.
Declaration
Swift
var state: NetworkOperationState { get }
-
If the state of the operation is
NetworkOperationState.suspended
, enqueues it to run as soon as possible. Does nothing otherwise.Declaration
Swift
func start()