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: Equatable
extension PromiseResult: Hashable where Value: Hashable, Error: Hashable
extension PromiseResult: Encodable where Value: Encodable, Error: Encodable
extension PromiseResult: Decodable where Value: Decodable, Error: Decodable
-
NoError
is 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 moreNever
except 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, CustomNSError
extension PromiseTimeoutError: Equatable where Error: Equatable
extension PromiseTimeoutError: Hashable where Error: Hashable