The following protocols are available globally.
PromiseKitabstraction of a
DispatchQueuethat allows for a more flexible variety of implementations. (For technical reasons,
DispatchQueueitself cannot be subclassed.)
Dispatchers define a
dispatchmethod that executes a supplied closure. Execution may be synchronous or asynchronous, serial or concurrent, and can occur on any thread.
DispatchQueues are also valid
public protocol Dispatcher