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>
-
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