Other Protocols

The following protocols are available globally.

  • Use this protocol to define cancellable tasks for CancellablePromise.

    See more

    Declaration

    Swift

    public protocol Cancellable
  • Provides catch and recover to your object that conforms to CancellableThenable

    See more

    Declaration

    Swift

    public protocol CancellableCatchMixin : CancellableThenable
  • CancellableThenable represents an asynchronous operation that can be both chained and cancelled. When chained, all CancellableThenable members of the chain are cancelled when cancel is called on the associated CancelContext.

    See more

    Declaration

    Swift

    public protocol CancellableThenable : AnyObject
  • 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
  • Undocumented

    See more

    Declaration

    Swift

    public protocol _PMKCatchWrappers
  • Undocumented

    See more

    Declaration

    Swift

    public protocol _PMKSharedWrappers
  • Undocumented

    See more

    Declaration

    Swift

    public protocol _PMKFinallyWrappers
  • Undocumented

    See more

    Declaration

    Swift

    public protocol _PMKSharedVoidWrappers