Enumerations
The following enumerations are available globally.
-
The context in which a Promise body or callback is evaluated.
Most of these values correspond with Dispatch QoS classes.
See moreDeclaration
Swift
public enum PromiseContext : Equatable, Hashable
-
An error potentially returned from
See morePromise.Resolver.handleCallback(isCancelError:).Declaration
Swift
@objc(TWLPromiseCallbackError) public enum PromiseCallbackError : Int, Error -
The result of a resolved promise.
See moreDeclaration
Swift
public enum PromiseResult<Value, Error>extension PromiseResult: Equatable where Value: Equatable, Error: Equatableextension PromiseResult: Hashable where Value: Hashable, Error: Hashableextension PromiseResult: Encodable where Value: Encodable, Error: Encodableextension PromiseResult: Decodable where Value: Decodable, Error: Decodable
-
NoErroris a type that cannot be constructed.It’s intended to be used as the error type for promises that cannot return an error. It is similar to
See moreNeverexcept it conforms to some protocols in order to make working with types containing it easier.Declaration
Swift
public enum NoError : Hashable, Equatable, Codable -
Declaration
Swift
public enum PromiseTimeoutError<Error> : Swift.Error, CustomNSErrorextension PromiseTimeoutError: Equatable where Error: Equatableextension PromiseTimeoutError: Hashable where Error: Hashable
View on GitHub
Enumerations Reference