Other Protocols

The following protocols are available globally.

  • A PromiseKit abstraction of a DispatchQueue that allows for a more flexible variety of implementations. (For technical reasons, DispatchQueue itself cannot be subclassed.)

    Dispatchers define a dispatch method that executes a supplied closure. Execution may be synchronous or asynchronous, serial or concurrent, and can occur on any thread.

    All DispatchQueues are also valid Dispatchers.

    See more

    Declaration

    Swift

    public protocol Dispatcher
  • ///////////////////////////////////////////////////////// Cancellation An error that may represent the cancelled condition

    See more

    Declaration

    Swift

    public protocol CancellableError : Error