Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Request_State

mattt edited this page Sep 18, 2020 · 2 revisions

Request.State

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

public enum State

Enumeration Cases

initialized

Initial state of the Request.

case initialized

resumed

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

case resumed

suspended

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

case suspended

cancelled

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.

case cancelled

finished

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

case finished
Types
Protocols
Global Typealiases
Clone this wiki locally