State

public enum State

State of the Request, with managed transitions between states set when calling resume(), suspend(), or cancel() on the Request.

  • Initial state of the Request.

    Declaration

    Swift

    case initialized
  • State set when resume() is called. Any tasks created for the Request will have resume() called on them in this state.

    Declaration

    Swift

    case resumed
  • State set when suspend() is called. Any tasks created for the Request will have suspend() called on them in this state.

    Declaration

    Swift

    case suspended
  • State set when cancel() is called. Any tasks created for the Request will have cancel() called on them. Unlike resumed or suspended, once in the cancelled state, the Request can no longer transition to any other state.

    Declaration

    Swift

    case cancelled
  • State set when all response serialization completion closures have been cleared on the Request and enqueued on their respective queues.

    Declaration

    Swift

    case finished