NetworkOperationState

public enum NetworkOperationState
extension NetworkOperationState: CustomStringConvertible

The possible execution states of a network operation.

  • The operation is not running.

    Declaration

    Swift

    case suspended
  • The operation is running.

    Declaration

    Swift

    case running
  • The operation has completed either successfully or due to a failure.

    Declaration

    Swift

    case completed
  • The operation has been cancelled.

    Declaration

    Swift

    case cancelled
  • Undocumented

    Declaration

    Swift

    public init(state: URLSessionTask.State)
  • Declaration

    Swift

    public var description: String { get }