diff --git a/docs/Enums.html b/docs/Enums.html index 8693f68..a51f67a 100644 --- a/docs/Enums.html +++ b/docs/Enums.html @@ -303,7 +303,7 @@
Swift
-public struct PromiseInvalidationToken
+ public struct PromiseInvalidationToken : CustomStringConvertible, CustomDebugStringConvertible
+
+
+ init(on:fulfilled:after:)
+
+ Returns a Promise
that fulfills with the given value after a delay.
Requesting that the promise be cancelled prior to it resolving will immediately cancel the +promise.
+ +This can be used as a sort of cancellable timer. It can also be used in conjunction with
+when(first:cancelRemaining:)
to implement a timeout that fulfills with a given value on
+timeout instead of rejecting with a PromiseTimeoutError
.
Swift
+public init(on context: PromiseContext = .auto, fulfilled value: Value, after delay: TimeInterval)
+
+
+
+ context
+
+ |
+
+
+
+ The context to resolve the |
+
+
+ value
+
+ |
+
+
+
+ The value the promise will be fulfilled with. + |
+
+
+ delay
+
+ |
+
+
+
+ The number of seconds to delay the promise by. + |
+
+
+
+ init(on:rejected:after:)
+
+ Returns a Promise
that rejects with the given error after a delay.
Requesting that the promise be cancelled prior to it resolving will immediately cancel the +promise.
+ +Swift
+public init(on context: PromiseContext = .auto, rejected error: Error, after delay: TimeInterval)
+
+
+
+ context
+
+ |
+
+
+
+ The context to resolve the |
+
+
+ error
+
+ |
+
+
+
+ The error the promise will be rejected with. + |
+
+
+ delay
+
+ |
+
+
+
+ The number of seconds to delay the promise by. + |
+
+
+
+ init(on:result:after:)
+
+ Returns a Promise
that resolves with the given result after a delay.
Requesting that the promise be cancelled prior to it resolving will immediately cancel the +promise.
+ +Swift
+public init(on context: PromiseContext = .auto, result: PromiseResult<Value,Error>, after delay: TimeInterval)
+
+
+
+ context
+
+ |
+
+
+
+ The context to resolve the |
+
+
+ result
+
+ |
+
+
+
+ The result the promise will be resolved with. + |
+
+
+ delay
+
+ |
+
+
+
+ The number of seconds to delay the promise by. + |
+
.immediate
. If not provided, defaults to
.auto
, which evaluates to .main
when invoked on the main thread, otherwise .default
.
If provided as .immediate
, behaves the same as .auto
. If provided as .operationQueue
-it uses the OperationQueue
‘s underlying queue, or .default
if there is no underlying
-queue.
+it enqueues an operation on the operation queue immediately that becomes ready once the
+delay has elapsed.
If the promise times out, the returned promise will be rejected using the same context. In
this event, .immediate
is treated the same as .auto
. If provided as .operationQueue
- it uses the OperationQueue
‘s underlying queue, or .default
if there is no underlying
- queue.
If the promise times out, the returned promise will be rejected using the same context. In
this event, .immediate
is treated the same as .auto
. If provided as .operationQueue
- it uses the OperationQueue
‘s underlying queue, or .default
if there is no underlying
- queue.
public struct PromiseInvalidationToken
+ public struct PromiseInvalidationToken : CustomStringConvertible, CustomDebugStringConvertible
+
+
+ description
+
+ Swift
+public var description: String { get }
+
+
+
+
+ debugDescription
+
+ Swift
+public var debugDescription: String { get }
+
+ Swift
-public struct PromiseInvalidationToken
+ public struct PromiseInvalidationToken : CustomStringConvertible, CustomDebugStringConvertible
+
+
+ init(on:fulfilled:after:)
+
+ Returns a Promise
that fulfills with the given value after a delay.
Requesting that the promise be cancelled prior to it resolving will immediately cancel the +promise.
+ +This can be used as a sort of cancellable timer. It can also be used in conjunction with
+when(first:cancelRemaining:)
to implement a timeout that fulfills with a given value on
+timeout instead of rejecting with a PromiseTimeoutError
.
Swift
+public init(on context: PromiseContext = .auto, fulfilled value: Value, after delay: TimeInterval)
+
+
+
+ context
+
+ |
+
+
+
+ The context to resolve the |
+
+
+ value
+
+ |
+
+
+
+ The value the promise will be fulfilled with. + |
+
+
+ delay
+
+ |
+
+
+
+ The number of seconds to delay the promise by. + |
+
+
+
+ init(on:rejected:after:)
+
+ Returns a Promise
that rejects with the given error after a delay.
Requesting that the promise be cancelled prior to it resolving will immediately cancel the +promise.
+ +Swift
+public init(on context: PromiseContext = .auto, rejected error: Error, after delay: TimeInterval)
+
+
+
+ context
+
+ |
+
+
+
+ The context to resolve the |
+
+
+ error
+
+ |
+
+
+
+ The error the promise will be rejected with. + |
+
+
+ delay
+
+ |
+
+
+
+ The number of seconds to delay the promise by. + |
+
+
+
+ init(on:result:after:)
+
+ Returns a Promise
that resolves with the given result after a delay.
Requesting that the promise be cancelled prior to it resolving will immediately cancel the +promise.
+ +Swift
+public init(on context: PromiseContext = .auto, result: PromiseResult<Value,Error>, after delay: TimeInterval)
+
+
+
+ context
+
+ |
+
+
+
+ The context to resolve the |
+
+
+ result
+
+ |
+
+
+
+ The result the promise will be resolved with. + |
+
+
+ delay
+
+ |
+
+
+
+ The number of seconds to delay the promise by. + |
+
.immediate
. If not provided, defaults to
.auto
, which evaluates to .main
when invoked on the main thread, otherwise .default
.
If provided as .immediate
, behaves the same as .auto
. If provided as .operationQueue
-it uses the OperationQueue
‘s underlying queue, or .default
if there is no underlying
-queue.
+it enqueues an operation on the operation queue immediately that becomes ready once the
+delay has elapsed.
If the promise times out, the returned promise will be rejected using the same context. In
this event, .immediate
is treated the same as .auto
. If provided as .operationQueue
- it uses the OperationQueue
‘s underlying queue, or .default
if there is no underlying
- queue.
If the promise times out, the returned promise will be rejected using the same context. In
this event, .immediate
is treated the same as .auto
. If provided as .operationQueue
- it uses the OperationQueue
‘s underlying queue, or .default
if there is no underlying
- queue.
public struct PromiseInvalidationToken
+ public struct PromiseInvalidationToken : CustomStringConvertible, CustomDebugStringConvertible
+
+
+ description
+
+ Swift
+public var description: String { get }
+
+
+
+
+ debugDescription
+
+ Swift
+public var debugDescription: String { get }
+
+ Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.
.delay(on:_:)
and .timeout(on:delay:)
when using PromiseContext.operationQueue
. The relevant operation is now added
+to the queue immediately and only becomes ready once the delay/timeout has elapsed.-[TWLPromise initCancelled]
to construct a pre-cancelled promise.Promise.init(on:fulfilled:after:)
, Promise.init(on:rejected:after:)
, and Promise.init(on:result:after:)
. These initializers produce
+something akin to Promise(fulfilled: value).delay(after)
except they respond to cancellation immediately. This makes them more suitable for use as
+cancellable timers, as opposed to .delay(_:)
which is more intended for debugging (#27).PromiseInvalidationToken.requestCancelOnInvalidate(_:)
. Any deallocated promises at the head of the
+callback list will be removed. This will help keep the callback list from growing uncontrollably when a token is used merely to cancel all promises when the owner
+deallocates as opposed to being periodically invalidated during its lifetime (#25)..delay(_:)
timer if .requestCancel()
is invoked and the upstream promise cancelled. This way requested cancels will skip the delay, but
+unexpected cancels will still delay the result (#26).StdDelayedPromise
is an alias for a DelayedPromise
whose error type is Swift.Error
.
StdPromise
is an alias for a Promise
whose error type is Swift.Error
.
The wrapped Promise
.
The PromiseInvalidationToken
to use when invoking methods on the wrapped Promise
.
Returns a new TokenPromise
that wraps the given promise.
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV4then2on_ACyqd__q_GAA0C7ContextO_AA0C0Vyqd__q_GxctlF":{"name":"then(on:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV5catch2on_ACyxq_GAA0C7ContextO_yq_ctF":{"name":"catch(on:_:)","abstract":"Registers a callback that is invoked when the promise is rejected.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV7recover2on_ACyxAA7NoErrorOGAA0C7ContextO_xq_ctF":{"name":"recover(on:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV6always2on_ACyqd__qd_0_GAA0C7ContextO_AA0C0Vyqd__qd_0_GAA0C6ResultOyxq_Gctr0_lF":{"name":"always(on:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV9tryAlways2on_ACyqd__s5Error_pGAA0C7ContextO_AA0C0Vyqd__qd_0_GAA0C6ResultOyxq_GKctsAFRd_0_r0_lF":{"name":"tryAlways(on:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV9tryAlways2on_ACyqd__s5Error_pGAA0C7ContextO_AA0C0Vyqd__sAF_pGAA0C6ResultOyxq_GKctlF":{"name":"tryAlways(on:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV3tap2on_ACyxq_GAA0C7ContextO_yAA0C6ResultOyxq_GctF":{"name":"tap(on:_:)","abstract":"
Registers a callback that will be invoked when the promise is resolved without affecting behavior.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV3tapACyxq_GyF":{"name":"tap()","abstract":"Returns a new TokenPromise
that adopts the result of the receiver without affecting its","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV8onCancel0D0_ACyxq_GAA0C7ContextO_yyctF":{"name":"onCancel(on:_:)","abstract":"
Registers a callback that will be invoked when the promise is cancelled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV4forkyACyxq_GyAEKXEKF":{"name":"fork(_:)","abstract":"Passes the TokenPromise
to a block and then returns the TokenPromise
for further","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV14ignoringCancelACyxq_GyF":{"name":"ignoringCancel()","abstract":"
Returns a new TokenPromise
that adopts the value of the receiver but ignores cancel","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE7tryThen2on_ACyqd__sAD_pGAA0C7ContextO_qd__xKctlF":{"name":"tryThen(on:_:)","abstract":"
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE7tryThen2on_ACyqd__sAD_pGAA0C7ContextO_AA0C0Vyqd__sAD_pGxKctlF":{"name":"tryThen(on:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE7tryThen2on_ACyqd__sAD_pGAA0C7ContextO_AA0C0Vyqd__qd_0_GxKctsADRd_0_r0_lF":{"name":"tryThen(on:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE10tryRecover2on_ACyxsAD_pGAA0C7ContextO_xsAD_pKctF":{"name":"tryRecover(on:_:)","abstract":"Two TokenPromise
s compare as equal if they represent the same promise.
Creates and returns a new PromiseInvalidationToken
.
Invalidates the token and cancels any associated promises.
","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:12Tomorrowland24PromiseInvalidationTokenV25cancelWithoutInvalidatingyyF":{"name":"cancelWithoutInvalidating()","abstract":"Cancels any associated promises without invalidating the token.
","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:12Tomorrowland24PromiseInvalidationTokenV25requestCancelOnInvalidateyyAA0B0Vyxq_Gr0_lF":{"name":"requestCancelOnInvalidate(_:)","abstract":"Registers a Promise
to be requested to cancel automatically when the token is invalidated.
Registers an ObjCPromise
to be requested to cancel automatically when the token is","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:12Tomorrowland24PromiseInvalidationTokenV2eeoiySbAC_ACtFZ":{"name":"==(_:_:)","abstract":"
Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseInvalidationToken"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV7fulfill4withyx_tF":{"name":"fulfill(with:)","abstract":"Fulfills the promise with the given value.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV6reject4withyq__tF":{"name":"reject(with:)","abstract":"Rejects the promise with the given error.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV6cancelyyF":{"name":"cancel()","abstract":"Cancels the promise.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV7resolve4withyAA0B6ResultOyxq_G_tF":{"name":"resolve(with:)","abstract":"Resolves the promise with the given result.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV15onRequestCancel0D0_yAA0B7ContextO_yAEyxq__GctF":{"name":"onRequestCancel(on:_:)","abstract":"Registers a block that will be invoked if requestCancel()
is invoked on the promise","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverVAAs5Error_pRs_rlE7resolve4withyAA0B6ResultOyxqd__G_tsAFRd__lF":{"name":"resolve(with:)","abstract":"
Resolves the promise with the given result.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverVAAs5Error_pRs_rlE14handleCallback08isCancelD0yxSg_sAF_pSgtcSbsAF_pc_tF":{"name":"handleCallback(isCancelError:)","abstract":"Convenience method for handling framework callbacks.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html":{"name":"Resolver","abstract":"A Resolver
is used to fulfill, reject, or cancel its associated Promise
.
Returns the result of the promise.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV16makeWithResolverACyxq_G_AC0E0Vyxq__GtyFZ":{"name":"makeWithResolver()","abstract":"Returns a Promise
and a Promise.Resolver
that can be used to fulfill that promise.
Returns a new Promise
that will be resolved using the given block.
Returns a Promise
that is already fulfilled with the given value.
Returns a Promise
that is already rejected with the given error.
Returns a Promise
that is already resolved with the given result.
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV4then2on5token_ACyqd__q_GAA0B7ContextO_AA0B17InvalidationTokenVSgAGxctlF":{"name":"then(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV5catch2on5token_ACyxq_GAA0B7ContextO_AA0B17InvalidationTokenVSgyq_ctF":{"name":"catch(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is rejected.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV7recover2on5token_ACyxAA7NoErrorOGAA0B7ContextO_AA0B17InvalidationTokenVSgxq_ctF":{"name":"recover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV7recover2on5token_ACyxqd__GAA0B7ContextO_AA0B17InvalidationTokenVSgAGq_ctlF":{"name":"recover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV6always2on5token_ACyxq_GAA0B7ContextO_AA0B17InvalidationTokenVSgyAA0B6ResultOyxq_GctF":{"name":"always(on:token:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV6always2on5token_ACyqd__qd_0_GAA0B7ContextO_AA0B17InvalidationTokenVSgAgA0B6ResultOyxq_Gctr0_lF":{"name":"always(on:token:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV9tryAlways2on5token_ACyqd__s5Error_pGAA0B7ContextO_AA0B17InvalidationTokenVSgACyqd__qd_0_GAA0B6ResultOyxq_GKctsAGRd_0_r0_lF":{"name":"tryAlways(on:token:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV9tryAlways2on5token_ACyqd__s5Error_pGAA0B7ContextO_AA0B17InvalidationTokenVSgAhA0B6ResultOyxq_GKctlF":{"name":"tryAlways(on:token:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV3tap2on5token_ACyxq_GAA0B7ContextO_AA0B17InvalidationTokenVSgyAA0B6ResultOyxq_GctF":{"name":"tap(on:token:_:)","abstract":"
Registers a callback that will be invoked when the promise is resolved without affecting behavior.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV3tapACyxq_GyF":{"name":"tap()","abstract":"Returns a new Promise
that adopts the result of the receiver without affecting its behavior.
Registers a callback that will be invoked when the promise is cancelled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV4forkyACyxq_GyAEKXEKF":{"name":"fork(_:)","abstract":"Passes the Promise
to a block and then returns the Promise
for further chaining.
Requests that the Promise
should be cancelled.
Requests that the Promise
should be cancelled when the token is invalidated.
Returns a new Promise
that adopts the value of the receiver but ignores cancel requests.
Requests that the Promise
should be cancelled when the object deinits.
Returns a new promise with an error type of Swift.Error
.
Returns a new promise with an error type of Swift.Error
.
Returns a new Promise
that will be resolved using the given block.
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE7tryThen2on5token_ACyqd__sAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgAHxKctlF":{"name":"tryThen(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE7tryThen2on5token_ACyqd__sAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgACyqd__qd_0_GxKctsADRd_0_r0_lF":{"name":"tryThen(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE10tryRecover2on5token_ACyxsAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgxsAD_pKctF":{"name":"tryRecover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE10tryRecover2on5token_ACyxsAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgAHsAD_pKctF":{"name":"tryRecover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE10tryRecover2on5token_ACyxsAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgACyxqd__GsAD_pKctsADRd__lF":{"name":"tryRecover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV2eeoiySbACyxq_G_AEtFZ":{"name":"==(_:_:)","abstract":"Two Promise
s compare as equal if they represent the same promise.
Returns a value that can be used to cancel this promise without holding onto the full promise.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV9withTokenyAA0dB0Vyxq_GAA0b12InvalidationD0VF":{"name":"withToken(_:)","abstract":"Returns a new TokenPromise
that wraps the receiver.
Returns a new Promise
that adopts the receiver’s result after a delay.
Returns a Promise
that is rejected with an error if the receiver does not resolve within","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE7timeout2on5delayACyxsAD_pGAA0B7ContextO_SdtF":{"name":"timeout(on:delay:)","abstract":"
Returns a Promise
that is rejected with an error if the receiver does not resolve within","parent_name":"Promise"},"Structs/DelayedPromise.html#/s:12Tomorrowland14DelayedPromiseV8Resolvera":{"name":"Resolver","abstract":"
The type of the promise resolver. See Promise<Value,Error>.Resolver
.
Returns a new DelayedPromise
that can be resolved with the given block.
Returns a Promise
that asynchronously contains the value of the computation.
DelayedPromise
is like a Promise
but it doesn’t invoke its callback until the .promise
"},"Structs/Promise.html":{"name":"Promise","abstract":"
A Promise
is a construct that will eventually hold a value or error, and can invoke callbacks"},"Structs.html#/s:12Tomorrowland18PromiseCancellableV":{"name":"PromiseCancellable","abstract":"
A type that can be used to cancel a promise without holding onto the full promise.
"},"Structs/PromiseInvalidationToken.html":{"name":"PromiseInvalidationToken","abstract":"An invalidation token that can be used to cancel callbacks registered to a Promise
.
A Promise
adapter that automatically applies a PromiseInvalidationToken
.
Waits on an array of Promise
s and returns a Promise
that is fulfilled with an array of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled_____3qos15cancelOnFailureAA7PromiseVyx_q_q0_q1_q2_q3_tq4_GAGyxq4_G_AGyq_q4_GAGyq0_q4_GAGyq1_q4_GAGyq2_q4_GAGyq3_q4_G8Dispatch0I3QoSV0J6SClassOSbtr5_lF":{"name":"when(fulfilled:_:_:_:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled____3qos15cancelOnFailureAA7PromiseVyx_q_q0_q1_q2_tq3_GAGyxq3_G_AGyq_q3_GAGyq0_q3_GAGyq1_q3_GAGyq2_q3_G8Dispatch0I3QoSV0J6SClassOSbtr4_lF":{"name":"when(fulfilled:_:_:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled___3qos15cancelOnFailureAA7PromiseVyx_q_q0_q1_tq2_GAGyxq2_G_AGyq_q2_GAGyq0_q2_GAGyq1_q2_G8Dispatch0I3QoSV0J6SClassOSbtr3_lF":{"name":"when(fulfilled:_:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled__3qos15cancelOnFailureAA7PromiseVyx_q_q0_tq1_GAGyxq1_G_AGyq_q1_GAGyq0_q1_G8Dispatch0I3QoSV0J6SClassOSbtr2_lF":{"name":"when(fulfilled:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled_3qos15cancelOnFailureAA7PromiseVyx_q_tq0_GAGyxq0_G_AGyq_q0_G8Dispatch0I3QoSV0J6SClassOSbtr1_lF":{"name":"when(fulfilled:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when5first15cancelRemainingAA7PromiseVyxq_GSayAGG_Sbtr0_lF":{"name":"when(first:cancelRemaining:)","abstract":"
Returns a Promise
that is resolved with the result of the first resolved input Promise
.
The promise did not resolve within the given interval.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:12Tomorrowland19PromiseTimeoutErrorO8rejectedyACyxGxcAEmlF":{"name":"rejected(_:)","abstract":"The promise was rejected with an error.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:10Foundation13CustomNSErrorP13errorUserInfoSDySSypGvp":{"name":"errorUserInfo","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:12Tomorrowland19PromiseTimeoutErrorOAASQRzlE2eeoiySbACyxG_AEtFZ":{"name":"==(_:_:)","abstract":"Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:12Tomorrowland19PromiseTimeoutErrorOAASQRzlE2neoiySbACyxG_AEtFZ":{"name":"!=(_:_:)","abstract":"Returns a Boolean value indicating whether two values are not equal.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseTimeoutError"},"Enums/NoError.html#/s:12Tomorrowland7NoErrorO2eeoiySbAC_ACtFZ":{"name":"==(_:_:)","abstract":"Returns a Boolean value indicating whether two values are equal.
","parent_name":"NoError"},"Enums/NoError.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"NoError"},"Enums/NoError.html#/s:SE6encode2toys7Encoder_p_tKF":{"name":"encode(to:)","parent_name":"NoError"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO5valueyACyxq_GxcAEmr0_lF":{"name":"value(_:)","abstract":"The value the promise was fulfilled with.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO5erroryACyxq_Gq_cAEmr0_lF":{"name":"error(_:)","abstract":"The error the promise was rejected with.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO9cancelledyACyxq_GAEmr0_lF":{"name":"cancelled","abstract":"The promise was cancelled.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO5valuexSgvp":{"name":"value","abstract":"Returns the contained value if the result is .value
, otherwise nil
.
Returns the contained error if the result is .error
, otherwise nil
.
Returns true
if the result is .cancelled
, otherwise false
.
Maps a successful result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO8mapErroryACyxqd__Gqd__q_KXEKlF":{"name":"mapError(_:)","abstract":"Maps a rejected result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO7flatMapyACyqd__q_GAExKXEKlF":{"name":"flatMap(_:)","abstract":"Maps a successful result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO12flatMapErroryACyxqd__GAEq_KXEKlF":{"name":"flatMapError(_:)","abstract":"Maps a rejected result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultOAASQRzSQR_rlE2eeoiySbACyxq_G_AEtFZ":{"name":"==(_:_:)","abstract":"Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultOAASQRzSQR_rlE2neoiySbACyxq_G_AEtFZ":{"name":"!=(_:_:)","abstract":"Returns a Boolean value indicating whether two values are not equal.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:SE6encode2toys7Encoder_p_tKF":{"name":"encode(to:)","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:Se4fromxs7Decoder_p_tKcfc":{"name":"init(from:)","parent_name":"PromiseResult"},"Enums/PromiseCallbackError.html#/c:@M@Tomorrowland@E@TWLPromiseCallbackError@TWLPromiseCallbackErrorAPIMismatch":{"name":"apiMismatch","abstract":"The callback did not conform to the expected API.
","parent_name":"PromiseCallbackError"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO4mainyA2CmF":{"name":"main","abstract":"Execute on the main queue.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO10backgroundyA2CmF":{"name":"background","abstract":"Execute on a dispatch queue with the .background
QoS.
Execute on a dispatch queue with the .utility
QoS.
Execute on a dispatch queue with the .default
QoS.
Execute on a dispatch queue with the .userInitiated
QoS.
Execute on a dispatch queue with the .userInteractive
QoS.
Execute on the specified dispatch queue.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO14operationQueueyACSo011NSOperationE0CcACmF":{"name":"operationQueue(_:)","abstract":"Execute on the specified operation queue.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO9immediateyA2CmF":{"name":"immediate","abstract":"Execute synchronously.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO4autoACvpZ":{"name":"auto","abstract":"Returns .main
when accessed from the main thread, otherwise .default
.
Returns the PromiseContext
that corresponds to a given Dispatch QoS class.
Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseContext"},"Enums/PromiseContext.html":{"name":"PromiseContext","abstract":"The context in which a Promise body or callback is evaluated.
"},"Enums/PromiseCallbackError.html":{"name":"PromiseCallbackError","abstract":"An error potentially returned from Promise.Resolver.handleCallback(isCancelError:)
.
The result of a resolved promise.
"},"Enums/NoError.html":{"name":"NoError","abstract":"NoError
is a type that cannot be constructed.
The error type returned from Promise.timeout
.
The following enumerations are available globally.
"},"Functions.html":{"name":"Functions","abstract":"The following functions are available globally.
"},"Structs.html":{"name":"Structures","abstract":"The following structures are available globally.
"},"Typealiases.html":{"name":"Type Aliases","abstract":"The following type aliases are available globally.
"}} \ No newline at end of file +{"Typealiases.html#/s:12Tomorrowland17StdDelayedPromisea":{"name":"StdDelayedPromise","abstract":"StdDelayedPromise
is an alias for a DelayedPromise
whose error type is Swift.Error
.
StdPromise
is an alias for a Promise
whose error type is Swift.Error
.
The wrapped Promise
.
The PromiseInvalidationToken
to use when invoking methods on the wrapped Promise
.
Returns a new TokenPromise
that wraps the given promise.
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV4then2on_ACyqd__q_GAA0C7ContextO_AA0C0Vyqd__q_GxctlF":{"name":"then(on:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV5catch2on_ACyxq_GAA0C7ContextO_yq_ctF":{"name":"catch(on:_:)","abstract":"Registers a callback that is invoked when the promise is rejected.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV7recover2on_ACyxAA7NoErrorOGAA0C7ContextO_xq_ctF":{"name":"recover(on:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV6always2on_ACyqd__qd_0_GAA0C7ContextO_AA0C0Vyqd__qd_0_GAA0C6ResultOyxq_Gctr0_lF":{"name":"always(on:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV9tryAlways2on_ACyqd__s5Error_pGAA0C7ContextO_AA0C0Vyqd__qd_0_GAA0C6ResultOyxq_GKctsAFRd_0_r0_lF":{"name":"tryAlways(on:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV9tryAlways2on_ACyqd__s5Error_pGAA0C7ContextO_AA0C0Vyqd__sAF_pGAA0C6ResultOyxq_GKctlF":{"name":"tryAlways(on:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV3tap2on_ACyxq_GAA0C7ContextO_yAA0C6ResultOyxq_GctF":{"name":"tap(on:_:)","abstract":"
Registers a callback that will be invoked when the promise is resolved without affecting behavior.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV3tapACyxq_GyF":{"name":"tap()","abstract":"Returns a new TokenPromise
that adopts the result of the receiver without affecting its","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV8onCancel0D0_ACyxq_GAA0C7ContextO_yyctF":{"name":"onCancel(on:_:)","abstract":"
Registers a callback that will be invoked when the promise is cancelled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV4forkyACyxq_GyAEKXEKF":{"name":"fork(_:)","abstract":"Passes the TokenPromise
to a block and then returns the TokenPromise
for further","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV14ignoringCancelACyxq_GyF":{"name":"ignoringCancel()","abstract":"
Returns a new TokenPromise
that adopts the value of the receiver but ignores cancel","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE7tryThen2on_ACyqd__sAD_pGAA0C7ContextO_qd__xKctlF":{"name":"tryThen(on:_:)","abstract":"
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE7tryThen2on_ACyqd__sAD_pGAA0C7ContextO_AA0C0Vyqd__sAD_pGxKctlF":{"name":"tryThen(on:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE7tryThen2on_ACyqd__sAD_pGAA0C7ContextO_AA0C0Vyqd__qd_0_GxKctsADRd_0_r0_lF":{"name":"tryThen(on:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE10tryRecover2on_ACyxsAD_pGAA0C7ContextO_xsAD_pKctF":{"name":"tryRecover(on:_:)","abstract":"Two TokenPromise
s compare as equal if they represent the same promise.
Creates and returns a new PromiseInvalidationToken
.
Invalidates the token and cancels any associated promises.
","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:12Tomorrowland24PromiseInvalidationTokenV25cancelWithoutInvalidatingyyF":{"name":"cancelWithoutInvalidating()","abstract":"Cancels any associated promises without invalidating the token.
","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:12Tomorrowland24PromiseInvalidationTokenV25requestCancelOnInvalidateyyAA0B0Vyxq_Gr0_lF":{"name":"requestCancelOnInvalidate(_:)","abstract":"Registers a Promise
to be requested to cancel automatically when the token is invalidated.
Registers an ObjCPromise
to be requested to cancel automatically when the token is","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:s23CustomStringConvertibleP11descriptionSSvp":{"name":"description","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:s28CustomDebugStringConvertibleP16debugDescriptionSSvp":{"name":"debugDescription","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:12Tomorrowland24PromiseInvalidationTokenV2eeoiySbAC_ACtFZ":{"name":"==(_:_:)","abstract":"
Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseInvalidationToken"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV7fulfill4withyx_tF":{"name":"fulfill(with:)","abstract":"Fulfills the promise with the given value.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV6reject4withyq__tF":{"name":"reject(with:)","abstract":"Rejects the promise with the given error.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV6cancelyyF":{"name":"cancel()","abstract":"Cancels the promise.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV7resolve4withyAA0B6ResultOyxq_G_tF":{"name":"resolve(with:)","abstract":"Resolves the promise with the given result.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV15onRequestCancel0D0_yAA0B7ContextO_yAEyxq__GctF":{"name":"onRequestCancel(on:_:)","abstract":"Registers a block that will be invoked if requestCancel()
is invoked on the promise","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverVAAs5Error_pRs_rlE7resolve4withyAA0B6ResultOyxqd__G_tsAFRd__lF":{"name":"resolve(with:)","abstract":"
Resolves the promise with the given result.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverVAAs5Error_pRs_rlE14handleCallback08isCancelD0yxSg_sAF_pSgtcSbsAF_pc_tF":{"name":"handleCallback(isCancelError:)","abstract":"Convenience method for handling framework callbacks.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html":{"name":"Resolver","abstract":"A Resolver
is used to fulfill, reject, or cancel its associated Promise
.
Returns the result of the promise.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV16makeWithResolverACyxq_G_AC0E0Vyxq__GtyFZ":{"name":"makeWithResolver()","abstract":"Returns a Promise
and a Promise.Resolver
that can be used to fulfill that promise.
Returns a new Promise
that will be resolved using the given block.
Returns a Promise
that is already fulfilled with the given value.
Returns a Promise
that is already rejected with the given error.
Returns a Promise
that is already resolved with the given result.
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV4then2on5token_ACyqd__q_GAA0B7ContextO_AA0B17InvalidationTokenVSgAGxctlF":{"name":"then(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV5catch2on5token_ACyxq_GAA0B7ContextO_AA0B17InvalidationTokenVSgyq_ctF":{"name":"catch(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is rejected.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV7recover2on5token_ACyxAA7NoErrorOGAA0B7ContextO_AA0B17InvalidationTokenVSgxq_ctF":{"name":"recover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV7recover2on5token_ACyxqd__GAA0B7ContextO_AA0B17InvalidationTokenVSgAGq_ctlF":{"name":"recover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV6always2on5token_ACyxq_GAA0B7ContextO_AA0B17InvalidationTokenVSgyAA0B6ResultOyxq_GctF":{"name":"always(on:token:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV6always2on5token_ACyqd__qd_0_GAA0B7ContextO_AA0B17InvalidationTokenVSgAgA0B6ResultOyxq_Gctr0_lF":{"name":"always(on:token:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV9tryAlways2on5token_ACyqd__s5Error_pGAA0B7ContextO_AA0B17InvalidationTokenVSgACyqd__qd_0_GAA0B6ResultOyxq_GKctsAGRd_0_r0_lF":{"name":"tryAlways(on:token:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV9tryAlways2on5token_ACyqd__s5Error_pGAA0B7ContextO_AA0B17InvalidationTokenVSgAhA0B6ResultOyxq_GKctlF":{"name":"tryAlways(on:token:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV3tap2on5token_ACyxq_GAA0B7ContextO_AA0B17InvalidationTokenVSgyAA0B6ResultOyxq_GctF":{"name":"tap(on:token:_:)","abstract":"
Registers a callback that will be invoked when the promise is resolved without affecting behavior.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV3tapACyxq_GyF":{"name":"tap()","abstract":"Returns a new Promise
that adopts the result of the receiver without affecting its behavior.
Registers a callback that will be invoked when the promise is cancelled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV4forkyACyxq_GyAEKXEKF":{"name":"fork(_:)","abstract":"Passes the Promise
to a block and then returns the Promise
for further chaining.
Requests that the Promise
should be cancelled.
Requests that the Promise
should be cancelled when the token is invalidated.
Returns a new Promise
that adopts the value of the receiver but ignores cancel requests.
Requests that the Promise
should be cancelled when the object deinits.
Returns a new promise with an error type of Swift.Error
.
Returns a new promise with an error type of Swift.Error
.
Returns a new Promise
that will be resolved using the given block.
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE7tryThen2on5token_ACyqd__sAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgAHxKctlF":{"name":"tryThen(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE7tryThen2on5token_ACyqd__sAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgACyqd__qd_0_GxKctsADRd_0_r0_lF":{"name":"tryThen(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE10tryRecover2on5token_ACyxsAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgxsAD_pKctF":{"name":"tryRecover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE10tryRecover2on5token_ACyxsAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgAHsAD_pKctF":{"name":"tryRecover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE10tryRecover2on5token_ACyxsAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgACyxqd__GsAD_pKctsADRd__lF":{"name":"tryRecover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV2eeoiySbACyxq_G_AEtFZ":{"name":"==(_:_:)","abstract":"Two Promise
s compare as equal if they represent the same promise.
Returns a value that can be used to cancel this promise without holding onto the full promise.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV9withTokenyAA0dB0Vyxq_GAA0b12InvalidationD0VF":{"name":"withToken(_:)","abstract":"Returns a new TokenPromise
that wraps the receiver.
Returns a Promise
that fulfills with the given value after a delay.
Returns a Promise
that rejects with the given error after a delay.
Returns a Promise
that resolves with the given result after a delay.
Returns a new Promise
that adopts the receiver’s result after a delay.
Returns a Promise
that is rejected with an error if the receiver does not resolve within","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE7timeout2on5delayACyxsAD_pGAA0B7ContextO_SdtF":{"name":"timeout(on:delay:)","abstract":"
Returns a Promise
that is rejected with an error if the receiver does not resolve within","parent_name":"Promise"},"Structs/DelayedPromise.html#/s:12Tomorrowland14DelayedPromiseV8Resolvera":{"name":"Resolver","abstract":"
The type of the promise resolver. See Promise<Value,Error>.Resolver
.
Returns a new DelayedPromise
that can be resolved with the given block.
Returns a Promise
that asynchronously contains the value of the computation.
DelayedPromise
is like a Promise
but it doesn’t invoke its callback until the .promise
"},"Structs/Promise.html":{"name":"Promise","abstract":"
A Promise
is a construct that will eventually hold a value or error, and can invoke callbacks"},"Structs.html#/s:12Tomorrowland18PromiseCancellableV":{"name":"PromiseCancellable","abstract":"
A type that can be used to cancel a promise without holding onto the full promise.
"},"Structs/PromiseInvalidationToken.html":{"name":"PromiseInvalidationToken","abstract":"An invalidation token that can be used to cancel callbacks registered to a Promise
.
A Promise
adapter that automatically applies a PromiseInvalidationToken
.
Waits on an array of Promise
s and returns a Promise
that is fulfilled with an array of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled_____3qos15cancelOnFailureAA7PromiseVyx_q_q0_q1_q2_q3_tq4_GAGyxq4_G_AGyq_q4_GAGyq0_q4_GAGyq1_q4_GAGyq2_q4_GAGyq3_q4_G8Dispatch0I3QoSV0J6SClassOSbtr5_lF":{"name":"when(fulfilled:_:_:_:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled____3qos15cancelOnFailureAA7PromiseVyx_q_q0_q1_q2_tq3_GAGyxq3_G_AGyq_q3_GAGyq0_q3_GAGyq1_q3_GAGyq2_q3_G8Dispatch0I3QoSV0J6SClassOSbtr4_lF":{"name":"when(fulfilled:_:_:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled___3qos15cancelOnFailureAA7PromiseVyx_q_q0_q1_tq2_GAGyxq2_G_AGyq_q2_GAGyq0_q2_GAGyq1_q2_G8Dispatch0I3QoSV0J6SClassOSbtr3_lF":{"name":"when(fulfilled:_:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled__3qos15cancelOnFailureAA7PromiseVyx_q_q0_tq1_GAGyxq1_G_AGyq_q1_GAGyq0_q1_G8Dispatch0I3QoSV0J6SClassOSbtr2_lF":{"name":"when(fulfilled:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled_3qos15cancelOnFailureAA7PromiseVyx_q_tq0_GAGyxq0_G_AGyq_q0_G8Dispatch0I3QoSV0J6SClassOSbtr1_lF":{"name":"when(fulfilled:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when5first15cancelRemainingAA7PromiseVyxq_GSayAGG_Sbtr0_lF":{"name":"when(first:cancelRemaining:)","abstract":"
Returns a Promise
that is resolved with the result of the first resolved input Promise
.
The promise did not resolve within the given interval.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:12Tomorrowland19PromiseTimeoutErrorO8rejectedyACyxGxcAEmlF":{"name":"rejected(_:)","abstract":"The promise was rejected with an error.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:10Foundation13CustomNSErrorP13errorUserInfoSDySSypGvp":{"name":"errorUserInfo","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:12Tomorrowland19PromiseTimeoutErrorOAASQRzlE2eeoiySbACyxG_AEtFZ":{"name":"==(_:_:)","abstract":"Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:12Tomorrowland19PromiseTimeoutErrorOAASQRzlE2neoiySbACyxG_AEtFZ":{"name":"!=(_:_:)","abstract":"Returns a Boolean value indicating whether two values are not equal.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseTimeoutError"},"Enums/NoError.html#/s:12Tomorrowland7NoErrorO2eeoiySbAC_ACtFZ":{"name":"==(_:_:)","abstract":"Returns a Boolean value indicating whether two values are equal.
","parent_name":"NoError"},"Enums/NoError.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"NoError"},"Enums/NoError.html#/s:SE6encode2toys7Encoder_p_tKF":{"name":"encode(to:)","parent_name":"NoError"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO5valueyACyxq_GxcAEmr0_lF":{"name":"value(_:)","abstract":"The value the promise was fulfilled with.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO5erroryACyxq_Gq_cAEmr0_lF":{"name":"error(_:)","abstract":"The error the promise was rejected with.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO9cancelledyACyxq_GAEmr0_lF":{"name":"cancelled","abstract":"The promise was cancelled.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO5valuexSgvp":{"name":"value","abstract":"Returns the contained value if the result is .value
, otherwise nil
.
Returns the contained error if the result is .error
, otherwise nil
.
Returns true
if the result is .cancelled
, otherwise false
.
Maps a successful result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO8mapErroryACyxqd__Gqd__q_KXEKlF":{"name":"mapError(_:)","abstract":"Maps a rejected result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO7flatMapyACyqd__q_GAExKXEKlF":{"name":"flatMap(_:)","abstract":"Maps a successful result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO12flatMapErroryACyxqd__GAEq_KXEKlF":{"name":"flatMapError(_:)","abstract":"Maps a rejected result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultOAASQRzSQR_rlE2eeoiySbACyxq_G_AEtFZ":{"name":"==(_:_:)","abstract":"Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultOAASQRzSQR_rlE2neoiySbACyxq_G_AEtFZ":{"name":"!=(_:_:)","abstract":"Returns a Boolean value indicating whether two values are not equal.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:SE6encode2toys7Encoder_p_tKF":{"name":"encode(to:)","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:Se4fromxs7Decoder_p_tKcfc":{"name":"init(from:)","parent_name":"PromiseResult"},"Enums/PromiseCallbackError.html#/c:@M@Tomorrowland@E@TWLPromiseCallbackError@TWLPromiseCallbackErrorAPIMismatch":{"name":"apiMismatch","abstract":"The callback did not conform to the expected API.
","parent_name":"PromiseCallbackError"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO4mainyA2CmF":{"name":"main","abstract":"Execute on the main queue.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO10backgroundyA2CmF":{"name":"background","abstract":"Execute on a dispatch queue with the .background
QoS.
Execute on a dispatch queue with the .utility
QoS.
Execute on a dispatch queue with the .default
QoS.
Execute on a dispatch queue with the .userInitiated
QoS.
Execute on a dispatch queue with the .userInteractive
QoS.
Execute on the specified dispatch queue.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO14operationQueueyACSo011NSOperationE0CcACmF":{"name":"operationQueue(_:)","abstract":"Execute on the specified operation queue.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO9immediateyA2CmF":{"name":"immediate","abstract":"Execute synchronously.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO4autoACvpZ":{"name":"auto","abstract":"Returns .main
when accessed from the main thread, otherwise .default
.
Returns the PromiseContext
that corresponds to a given Dispatch QoS class.
Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseContext"},"Enums/PromiseContext.html":{"name":"PromiseContext","abstract":"The context in which a Promise body or callback is evaluated.
"},"Enums/PromiseCallbackError.html":{"name":"PromiseCallbackError","abstract":"An error potentially returned from Promise.Resolver.handleCallback(isCancelError:)
.
The result of a resolved promise.
"},"Enums/NoError.html":{"name":"NoError","abstract":"NoError
is a type that cannot be constructed.
The error type returned from Promise.timeout
.
The following enumerations are available globally.
"},"Functions.html":{"name":"Functions","abstract":"The following functions are available globally.
"},"Structs.html":{"name":"Structures","abstract":"The following structures are available globally.
"},"Typealiases.html":{"name":"Type Aliases","abstract":"The following type aliases are available globally.
"}} \ No newline at end of file diff --git a/docs/docsets/Tomorrowland.docset/Contents/Resources/docSet.dsidx b/docs/docsets/Tomorrowland.docset/Contents/Resources/docSet.dsidx index 8043ae4..ee40294 100644 Binary files a/docs/docsets/Tomorrowland.docset/Contents/Resources/docSet.dsidx and b/docs/docsets/Tomorrowland.docset/Contents/Resources/docSet.dsidx differ diff --git a/docs/docsets/Tomorrowland.tgz b/docs/docsets/Tomorrowland.tgz index 6e93a9e..1918eed 100644 Binary files a/docs/docsets/Tomorrowland.tgz and b/docs/docsets/Tomorrowland.tgz differ diff --git a/docs/index.html b/docs/index.html index 47c374e..850d5d7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -115,7 +115,7 @@Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.
.delay(on:_:)
and .timeout(on:delay:)
when using PromiseContext.operationQueue
. The relevant operation is now added
+to the queue immediately and only becomes ready once the delay/timeout has elapsed.-[TWLPromise initCancelled]
to construct a pre-cancelled promise.Promise.init(on:fulfilled:after:)
, Promise.init(on:rejected:after:)
, and Promise.init(on:result:after:)
. These initializers produce
+something akin to Promise(fulfilled: value).delay(after)
except they respond to cancellation immediately. This makes them more suitable for use as
+cancellable timers, as opposed to .delay(_:)
which is more intended for debugging (#27).PromiseInvalidationToken.requestCancelOnInvalidate(_:)
. Any deallocated promises at the head of the
+callback list will be removed. This will help keep the callback list from growing uncontrollably when a token is used merely to cancel all promises when the owner
+deallocates as opposed to being periodically invalidated during its lifetime (#25)..delay(_:)
timer if .requestCancel()
is invoked and the upstream promise cancelled. This way requested cancels will skip the delay, but
+unexpected cancels will still delay the result (#26).StdDelayedPromise
is an alias for a DelayedPromise
whose error type is Swift.Error
.
StdPromise
is an alias for a Promise
whose error type is Swift.Error
.
The wrapped Promise
.
The PromiseInvalidationToken
to use when invoking methods on the wrapped Promise
.
Returns a new TokenPromise
that wraps the given promise.
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV4then2on_ACyqd__q_GAA0C7ContextO_AA0C0Vyqd__q_GxctlF":{"name":"then(on:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV5catch2on_ACyxq_GAA0C7ContextO_yq_ctF":{"name":"catch(on:_:)","abstract":"Registers a callback that is invoked when the promise is rejected.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV7recover2on_ACyxAA7NoErrorOGAA0C7ContextO_xq_ctF":{"name":"recover(on:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV6always2on_ACyqd__qd_0_GAA0C7ContextO_AA0C0Vyqd__qd_0_GAA0C6ResultOyxq_Gctr0_lF":{"name":"always(on:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV9tryAlways2on_ACyqd__s5Error_pGAA0C7ContextO_AA0C0Vyqd__qd_0_GAA0C6ResultOyxq_GKctsAFRd_0_r0_lF":{"name":"tryAlways(on:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV9tryAlways2on_ACyqd__s5Error_pGAA0C7ContextO_AA0C0Vyqd__sAF_pGAA0C6ResultOyxq_GKctlF":{"name":"tryAlways(on:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV3tap2on_ACyxq_GAA0C7ContextO_yAA0C6ResultOyxq_GctF":{"name":"tap(on:_:)","abstract":"
Registers a callback that will be invoked when the promise is resolved without affecting behavior.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV3tapACyxq_GyF":{"name":"tap()","abstract":"Returns a new TokenPromise
that adopts the result of the receiver without affecting its","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV8onCancel0D0_ACyxq_GAA0C7ContextO_yyctF":{"name":"onCancel(on:_:)","abstract":"
Registers a callback that will be invoked when the promise is cancelled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV4forkyACyxq_GyAEKXEKF":{"name":"fork(_:)","abstract":"Passes the TokenPromise
to a block and then returns the TokenPromise
for further","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV14ignoringCancelACyxq_GyF":{"name":"ignoringCancel()","abstract":"
Returns a new TokenPromise
that adopts the value of the receiver but ignores cancel","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE7tryThen2on_ACyqd__sAD_pGAA0C7ContextO_qd__xKctlF":{"name":"tryThen(on:_:)","abstract":"
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE7tryThen2on_ACyqd__sAD_pGAA0C7ContextO_AA0C0Vyqd__sAD_pGxKctlF":{"name":"tryThen(on:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE7tryThen2on_ACyqd__sAD_pGAA0C7ContextO_AA0C0Vyqd__qd_0_GxKctsADRd_0_r0_lF":{"name":"tryThen(on:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE10tryRecover2on_ACyxsAD_pGAA0C7ContextO_xsAD_pKctF":{"name":"tryRecover(on:_:)","abstract":"Two TokenPromise
s compare as equal if they represent the same promise.
Creates and returns a new PromiseInvalidationToken
.
Invalidates the token and cancels any associated promises.
","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:12Tomorrowland24PromiseInvalidationTokenV25cancelWithoutInvalidatingyyF":{"name":"cancelWithoutInvalidating()","abstract":"Cancels any associated promises without invalidating the token.
","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:12Tomorrowland24PromiseInvalidationTokenV25requestCancelOnInvalidateyyAA0B0Vyxq_Gr0_lF":{"name":"requestCancelOnInvalidate(_:)","abstract":"Registers a Promise
to be requested to cancel automatically when the token is invalidated.
Registers an ObjCPromise
to be requested to cancel automatically when the token is","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:12Tomorrowland24PromiseInvalidationTokenV2eeoiySbAC_ACtFZ":{"name":"==(_:_:)","abstract":"
Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseInvalidationToken"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV7fulfill4withyx_tF":{"name":"fulfill(with:)","abstract":"Fulfills the promise with the given value.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV6reject4withyq__tF":{"name":"reject(with:)","abstract":"Rejects the promise with the given error.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV6cancelyyF":{"name":"cancel()","abstract":"Cancels the promise.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV7resolve4withyAA0B6ResultOyxq_G_tF":{"name":"resolve(with:)","abstract":"Resolves the promise with the given result.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV15onRequestCancel0D0_yAA0B7ContextO_yAEyxq__GctF":{"name":"onRequestCancel(on:_:)","abstract":"Registers a block that will be invoked if requestCancel()
is invoked on the promise","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverVAAs5Error_pRs_rlE7resolve4withyAA0B6ResultOyxqd__G_tsAFRd__lF":{"name":"resolve(with:)","abstract":"
Resolves the promise with the given result.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverVAAs5Error_pRs_rlE14handleCallback08isCancelD0yxSg_sAF_pSgtcSbsAF_pc_tF":{"name":"handleCallback(isCancelError:)","abstract":"Convenience method for handling framework callbacks.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html":{"name":"Resolver","abstract":"A Resolver
is used to fulfill, reject, or cancel its associated Promise
.
Returns the result of the promise.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV16makeWithResolverACyxq_G_AC0E0Vyxq__GtyFZ":{"name":"makeWithResolver()","abstract":"Returns a Promise
and a Promise.Resolver
that can be used to fulfill that promise.
Returns a new Promise
that will be resolved using the given block.
Returns a Promise
that is already fulfilled with the given value.
Returns a Promise
that is already rejected with the given error.
Returns a Promise
that is already resolved with the given result.
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV4then2on5token_ACyqd__q_GAA0B7ContextO_AA0B17InvalidationTokenVSgAGxctlF":{"name":"then(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV5catch2on5token_ACyxq_GAA0B7ContextO_AA0B17InvalidationTokenVSgyq_ctF":{"name":"catch(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is rejected.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV7recover2on5token_ACyxAA7NoErrorOGAA0B7ContextO_AA0B17InvalidationTokenVSgxq_ctF":{"name":"recover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV7recover2on5token_ACyxqd__GAA0B7ContextO_AA0B17InvalidationTokenVSgAGq_ctlF":{"name":"recover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV6always2on5token_ACyxq_GAA0B7ContextO_AA0B17InvalidationTokenVSgyAA0B6ResultOyxq_GctF":{"name":"always(on:token:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV6always2on5token_ACyqd__qd_0_GAA0B7ContextO_AA0B17InvalidationTokenVSgAgA0B6ResultOyxq_Gctr0_lF":{"name":"always(on:token:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV9tryAlways2on5token_ACyqd__s5Error_pGAA0B7ContextO_AA0B17InvalidationTokenVSgACyqd__qd_0_GAA0B6ResultOyxq_GKctsAGRd_0_r0_lF":{"name":"tryAlways(on:token:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV9tryAlways2on5token_ACyqd__s5Error_pGAA0B7ContextO_AA0B17InvalidationTokenVSgAhA0B6ResultOyxq_GKctlF":{"name":"tryAlways(on:token:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV3tap2on5token_ACyxq_GAA0B7ContextO_AA0B17InvalidationTokenVSgyAA0B6ResultOyxq_GctF":{"name":"tap(on:token:_:)","abstract":"
Registers a callback that will be invoked when the promise is resolved without affecting behavior.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV3tapACyxq_GyF":{"name":"tap()","abstract":"Returns a new Promise
that adopts the result of the receiver without affecting its behavior.
Registers a callback that will be invoked when the promise is cancelled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV4forkyACyxq_GyAEKXEKF":{"name":"fork(_:)","abstract":"Passes the Promise
to a block and then returns the Promise
for further chaining.
Requests that the Promise
should be cancelled.
Requests that the Promise
should be cancelled when the token is invalidated.
Returns a new Promise
that adopts the value of the receiver but ignores cancel requests.
Requests that the Promise
should be cancelled when the object deinits.
Returns a new promise with an error type of Swift.Error
.
Returns a new promise with an error type of Swift.Error
.
Returns a new Promise
that will be resolved using the given block.
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE7tryThen2on5token_ACyqd__sAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgAHxKctlF":{"name":"tryThen(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE7tryThen2on5token_ACyqd__sAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgACyqd__qd_0_GxKctsADRd_0_r0_lF":{"name":"tryThen(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE10tryRecover2on5token_ACyxsAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgxsAD_pKctF":{"name":"tryRecover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE10tryRecover2on5token_ACyxsAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgAHsAD_pKctF":{"name":"tryRecover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE10tryRecover2on5token_ACyxsAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgACyxqd__GsAD_pKctsADRd__lF":{"name":"tryRecover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV2eeoiySbACyxq_G_AEtFZ":{"name":"==(_:_:)","abstract":"Two Promise
s compare as equal if they represent the same promise.
Returns a value that can be used to cancel this promise without holding onto the full promise.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV9withTokenyAA0dB0Vyxq_GAA0b12InvalidationD0VF":{"name":"withToken(_:)","abstract":"Returns a new TokenPromise
that wraps the receiver.
Returns a new Promise
that adopts the receiver’s result after a delay.
Returns a Promise
that is rejected with an error if the receiver does not resolve within","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE7timeout2on5delayACyxsAD_pGAA0B7ContextO_SdtF":{"name":"timeout(on:delay:)","abstract":"
Returns a Promise
that is rejected with an error if the receiver does not resolve within","parent_name":"Promise"},"Structs/DelayedPromise.html#/s:12Tomorrowland14DelayedPromiseV8Resolvera":{"name":"Resolver","abstract":"
The type of the promise resolver. See Promise<Value,Error>.Resolver
.
Returns a new DelayedPromise
that can be resolved with the given block.
Returns a Promise
that asynchronously contains the value of the computation.
DelayedPromise
is like a Promise
but it doesn’t invoke its callback until the .promise
"},"Structs/Promise.html":{"name":"Promise","abstract":"
A Promise
is a construct that will eventually hold a value or error, and can invoke callbacks"},"Structs.html#/s:12Tomorrowland18PromiseCancellableV":{"name":"PromiseCancellable","abstract":"
A type that can be used to cancel a promise without holding onto the full promise.
"},"Structs/PromiseInvalidationToken.html":{"name":"PromiseInvalidationToken","abstract":"An invalidation token that can be used to cancel callbacks registered to a Promise
.
A Promise
adapter that automatically applies a PromiseInvalidationToken
.
Waits on an array of Promise
s and returns a Promise
that is fulfilled with an array of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled_____3qos15cancelOnFailureAA7PromiseVyx_q_q0_q1_q2_q3_tq4_GAGyxq4_G_AGyq_q4_GAGyq0_q4_GAGyq1_q4_GAGyq2_q4_GAGyq3_q4_G8Dispatch0I3QoSV0J6SClassOSbtr5_lF":{"name":"when(fulfilled:_:_:_:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled____3qos15cancelOnFailureAA7PromiseVyx_q_q0_q1_q2_tq3_GAGyxq3_G_AGyq_q3_GAGyq0_q3_GAGyq1_q3_GAGyq2_q3_G8Dispatch0I3QoSV0J6SClassOSbtr4_lF":{"name":"when(fulfilled:_:_:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled___3qos15cancelOnFailureAA7PromiseVyx_q_q0_q1_tq2_GAGyxq2_G_AGyq_q2_GAGyq0_q2_GAGyq1_q2_G8Dispatch0I3QoSV0J6SClassOSbtr3_lF":{"name":"when(fulfilled:_:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled__3qos15cancelOnFailureAA7PromiseVyx_q_q0_tq1_GAGyxq1_G_AGyq_q1_GAGyq0_q1_G8Dispatch0I3QoSV0J6SClassOSbtr2_lF":{"name":"when(fulfilled:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled_3qos15cancelOnFailureAA7PromiseVyx_q_tq0_GAGyxq0_G_AGyq_q0_G8Dispatch0I3QoSV0J6SClassOSbtr1_lF":{"name":"when(fulfilled:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when5first15cancelRemainingAA7PromiseVyxq_GSayAGG_Sbtr0_lF":{"name":"when(first:cancelRemaining:)","abstract":"
Returns a Promise
that is resolved with the result of the first resolved input Promise
.
The promise did not resolve within the given interval.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:12Tomorrowland19PromiseTimeoutErrorO8rejectedyACyxGxcAEmlF":{"name":"rejected(_:)","abstract":"The promise was rejected with an error.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:10Foundation13CustomNSErrorP13errorUserInfoSDySSypGvp":{"name":"errorUserInfo","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:12Tomorrowland19PromiseTimeoutErrorOAASQRzlE2eeoiySbACyxG_AEtFZ":{"name":"==(_:_:)","abstract":"Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:12Tomorrowland19PromiseTimeoutErrorOAASQRzlE2neoiySbACyxG_AEtFZ":{"name":"!=(_:_:)","abstract":"Returns a Boolean value indicating whether two values are not equal.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseTimeoutError"},"Enums/NoError.html#/s:12Tomorrowland7NoErrorO2eeoiySbAC_ACtFZ":{"name":"==(_:_:)","abstract":"Returns a Boolean value indicating whether two values are equal.
","parent_name":"NoError"},"Enums/NoError.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"NoError"},"Enums/NoError.html#/s:SE6encode2toys7Encoder_p_tKF":{"name":"encode(to:)","parent_name":"NoError"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO5valueyACyxq_GxcAEmr0_lF":{"name":"value(_:)","abstract":"The value the promise was fulfilled with.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO5erroryACyxq_Gq_cAEmr0_lF":{"name":"error(_:)","abstract":"The error the promise was rejected with.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO9cancelledyACyxq_GAEmr0_lF":{"name":"cancelled","abstract":"The promise was cancelled.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO5valuexSgvp":{"name":"value","abstract":"Returns the contained value if the result is .value
, otherwise nil
.
Returns the contained error if the result is .error
, otherwise nil
.
Returns true
if the result is .cancelled
, otherwise false
.
Maps a successful result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO8mapErroryACyxqd__Gqd__q_KXEKlF":{"name":"mapError(_:)","abstract":"Maps a rejected result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO7flatMapyACyqd__q_GAExKXEKlF":{"name":"flatMap(_:)","abstract":"Maps a successful result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO12flatMapErroryACyxqd__GAEq_KXEKlF":{"name":"flatMapError(_:)","abstract":"Maps a rejected result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultOAASQRzSQR_rlE2eeoiySbACyxq_G_AEtFZ":{"name":"==(_:_:)","abstract":"Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultOAASQRzSQR_rlE2neoiySbACyxq_G_AEtFZ":{"name":"!=(_:_:)","abstract":"Returns a Boolean value indicating whether two values are not equal.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:SE6encode2toys7Encoder_p_tKF":{"name":"encode(to:)","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:Se4fromxs7Decoder_p_tKcfc":{"name":"init(from:)","parent_name":"PromiseResult"},"Enums/PromiseCallbackError.html#/c:@M@Tomorrowland@E@TWLPromiseCallbackError@TWLPromiseCallbackErrorAPIMismatch":{"name":"apiMismatch","abstract":"The callback did not conform to the expected API.
","parent_name":"PromiseCallbackError"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO4mainyA2CmF":{"name":"main","abstract":"Execute on the main queue.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO10backgroundyA2CmF":{"name":"background","abstract":"Execute on a dispatch queue with the .background
QoS.
Execute on a dispatch queue with the .utility
QoS.
Execute on a dispatch queue with the .default
QoS.
Execute on a dispatch queue with the .userInitiated
QoS.
Execute on a dispatch queue with the .userInteractive
QoS.
Execute on the specified dispatch queue.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO14operationQueueyACSo011NSOperationE0CcACmF":{"name":"operationQueue(_:)","abstract":"Execute on the specified operation queue.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO9immediateyA2CmF":{"name":"immediate","abstract":"Execute synchronously.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO4autoACvpZ":{"name":"auto","abstract":"Returns .main
when accessed from the main thread, otherwise .default
.
Returns the PromiseContext
that corresponds to a given Dispatch QoS class.
Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseContext"},"Enums/PromiseContext.html":{"name":"PromiseContext","abstract":"The context in which a Promise body or callback is evaluated.
"},"Enums/PromiseCallbackError.html":{"name":"PromiseCallbackError","abstract":"An error potentially returned from Promise.Resolver.handleCallback(isCancelError:)
.
The result of a resolved promise.
"},"Enums/NoError.html":{"name":"NoError","abstract":"NoError
is a type that cannot be constructed.
The error type returned from Promise.timeout
.
The following enumerations are available globally.
"},"Functions.html":{"name":"Functions","abstract":"The following functions are available globally.
"},"Structs.html":{"name":"Structures","abstract":"The following structures are available globally.
"},"Typealiases.html":{"name":"Type Aliases","abstract":"The following type aliases are available globally.
"}} \ No newline at end of file +{"Typealiases.html#/s:12Tomorrowland17StdDelayedPromisea":{"name":"StdDelayedPromise","abstract":"StdDelayedPromise
is an alias for a DelayedPromise
whose error type is Swift.Error
.
StdPromise
is an alias for a Promise
whose error type is Swift.Error
.
The wrapped Promise
.
The PromiseInvalidationToken
to use when invoking methods on the wrapped Promise
.
Returns a new TokenPromise
that wraps the given promise.
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV4then2on_ACyqd__q_GAA0C7ContextO_AA0C0Vyqd__q_GxctlF":{"name":"then(on:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV5catch2on_ACyxq_GAA0C7ContextO_yq_ctF":{"name":"catch(on:_:)","abstract":"Registers a callback that is invoked when the promise is rejected.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV7recover2on_ACyxAA7NoErrorOGAA0C7ContextO_xq_ctF":{"name":"recover(on:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV6always2on_ACyqd__qd_0_GAA0C7ContextO_AA0C0Vyqd__qd_0_GAA0C6ResultOyxq_Gctr0_lF":{"name":"always(on:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV9tryAlways2on_ACyqd__s5Error_pGAA0C7ContextO_AA0C0Vyqd__qd_0_GAA0C6ResultOyxq_GKctsAFRd_0_r0_lF":{"name":"tryAlways(on:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV9tryAlways2on_ACyqd__s5Error_pGAA0C7ContextO_AA0C0Vyqd__sAF_pGAA0C6ResultOyxq_GKctlF":{"name":"tryAlways(on:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV3tap2on_ACyxq_GAA0C7ContextO_yAA0C6ResultOyxq_GctF":{"name":"tap(on:_:)","abstract":"
Registers a callback that will be invoked when the promise is resolved without affecting behavior.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV3tapACyxq_GyF":{"name":"tap()","abstract":"Returns a new TokenPromise
that adopts the result of the receiver without affecting its","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV8onCancel0D0_ACyxq_GAA0C7ContextO_yyctF":{"name":"onCancel(on:_:)","abstract":"
Registers a callback that will be invoked when the promise is cancelled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV4forkyACyxq_GyAEKXEKF":{"name":"fork(_:)","abstract":"Passes the TokenPromise
to a block and then returns the TokenPromise
for further","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseV14ignoringCancelACyxq_GyF":{"name":"ignoringCancel()","abstract":"
Returns a new TokenPromise
that adopts the value of the receiver but ignores cancel","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE7tryThen2on_ACyqd__sAD_pGAA0C7ContextO_qd__xKctlF":{"name":"tryThen(on:_:)","abstract":"
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE7tryThen2on_ACyqd__sAD_pGAA0C7ContextO_AA0C0Vyqd__sAD_pGxKctlF":{"name":"tryThen(on:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE7tryThen2on_ACyqd__sAD_pGAA0C7ContextO_AA0C0Vyqd__qd_0_GxKctsADRd_0_r0_lF":{"name":"tryThen(on:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"TokenPromise"},"Structs/TokenPromise.html#/s:12Tomorrowland12TokenPromiseVAAs5Error_pRs_rlE10tryRecover2on_ACyxsAD_pGAA0C7ContextO_xsAD_pKctF":{"name":"tryRecover(on:_:)","abstract":"Two TokenPromise
s compare as equal if they represent the same promise.
Creates and returns a new PromiseInvalidationToken
.
Invalidates the token and cancels any associated promises.
","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:12Tomorrowland24PromiseInvalidationTokenV25cancelWithoutInvalidatingyyF":{"name":"cancelWithoutInvalidating()","abstract":"Cancels any associated promises without invalidating the token.
","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:12Tomorrowland24PromiseInvalidationTokenV25requestCancelOnInvalidateyyAA0B0Vyxq_Gr0_lF":{"name":"requestCancelOnInvalidate(_:)","abstract":"Registers a Promise
to be requested to cancel automatically when the token is invalidated.
Registers an ObjCPromise
to be requested to cancel automatically when the token is","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:s23CustomStringConvertibleP11descriptionSSvp":{"name":"description","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:s28CustomDebugStringConvertibleP16debugDescriptionSSvp":{"name":"debugDescription","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:12Tomorrowland24PromiseInvalidationTokenV2eeoiySbAC_ACtFZ":{"name":"==(_:_:)","abstract":"
Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseInvalidationToken"},"Structs/PromiseInvalidationToken.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseInvalidationToken"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV7fulfill4withyx_tF":{"name":"fulfill(with:)","abstract":"Fulfills the promise with the given value.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV6reject4withyq__tF":{"name":"reject(with:)","abstract":"Rejects the promise with the given error.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV6cancelyyF":{"name":"cancel()","abstract":"Cancels the promise.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV7resolve4withyAA0B6ResultOyxq_G_tF":{"name":"resolve(with:)","abstract":"Resolves the promise with the given result.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverV15onRequestCancel0D0_yAA0B7ContextO_yAEyxq__GctF":{"name":"onRequestCancel(on:_:)","abstract":"Registers a block that will be invoked if requestCancel()
is invoked on the promise","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverVAAs5Error_pRs_rlE7resolve4withyAA0B6ResultOyxqd__G_tsAFRd__lF":{"name":"resolve(with:)","abstract":"
Resolves the promise with the given result.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html#/s:12Tomorrowland7PromiseV8ResolverVAAs5Error_pRs_rlE14handleCallback08isCancelD0yxSg_sAF_pSgtcSbsAF_pc_tF":{"name":"handleCallback(isCancelError:)","abstract":"Convenience method for handling framework callbacks.
","parent_name":"Resolver"},"Structs/Promise/Resolver.html":{"name":"Resolver","abstract":"A Resolver
is used to fulfill, reject, or cancel its associated Promise
.
Returns the result of the promise.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV16makeWithResolverACyxq_G_AC0E0Vyxq__GtyFZ":{"name":"makeWithResolver()","abstract":"Returns a Promise
and a Promise.Resolver
that can be used to fulfill that promise.
Returns a new Promise
that will be resolved using the given block.
Returns a Promise
that is already fulfilled with the given value.
Returns a Promise
that is already rejected with the given error.
Returns a Promise
that is already resolved with the given result.
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV4then2on5token_ACyqd__q_GAA0B7ContextO_AA0B17InvalidationTokenVSgAGxctlF":{"name":"then(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV5catch2on5token_ACyxq_GAA0B7ContextO_AA0B17InvalidationTokenVSgyq_ctF":{"name":"catch(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is rejected.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV7recover2on5token_ACyxAA7NoErrorOGAA0B7ContextO_AA0B17InvalidationTokenVSgxq_ctF":{"name":"recover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV7recover2on5token_ACyxqd__GAA0B7ContextO_AA0B17InvalidationTokenVSgAGq_ctlF":{"name":"recover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV6always2on5token_ACyxq_GAA0B7ContextO_AA0B17InvalidationTokenVSgyAA0B6ResultOyxq_GctF":{"name":"always(on:token:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV6always2on5token_ACyqd__qd_0_GAA0B7ContextO_AA0B17InvalidationTokenVSgAgA0B6ResultOyxq_Gctr0_lF":{"name":"always(on:token:_:)","abstract":"Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV9tryAlways2on5token_ACyqd__s5Error_pGAA0B7ContextO_AA0B17InvalidationTokenVSgACyqd__qd_0_GAA0B6ResultOyxq_GKctsAGRd_0_r0_lF":{"name":"tryAlways(on:token:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV9tryAlways2on5token_ACyqd__s5Error_pGAA0B7ContextO_AA0B17InvalidationTokenVSgAhA0B6ResultOyxq_GKctlF":{"name":"tryAlways(on:token:_:)","abstract":"
Registers a callback that will be invoked with the promise result, no matter what it is, and","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV3tap2on5token_ACyxq_GAA0B7ContextO_AA0B17InvalidationTokenVSgyAA0B6ResultOyxq_GctF":{"name":"tap(on:token:_:)","abstract":"
Registers a callback that will be invoked when the promise is resolved without affecting behavior.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV3tapACyxq_GyF":{"name":"tap()","abstract":"Returns a new Promise
that adopts the result of the receiver without affecting its behavior.
Registers a callback that will be invoked when the promise is cancelled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV4forkyACyxq_GyAEKXEKF":{"name":"fork(_:)","abstract":"Passes the Promise
to a block and then returns the Promise
for further chaining.
Requests that the Promise
should be cancelled.
Requests that the Promise
should be cancelled when the token is invalidated.
Returns a new Promise
that adopts the value of the receiver but ignores cancel requests.
Requests that the Promise
should be cancelled when the object deinits.
Returns a new promise with an error type of Swift.Error
.
Returns a new promise with an error type of Swift.Error
.
Returns a new Promise
that will be resolved using the given block.
Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE7tryThen2on5token_ACyqd__sAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgAHxKctlF":{"name":"tryThen(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE7tryThen2on5token_ACyqd__sAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgACyqd__qd_0_GxKctsADRd_0_r0_lF":{"name":"tryThen(on:token:_:)","abstract":"Registers a callback that is invoked when the promise is fulfilled.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE10tryRecover2on5token_ACyxsAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgxsAD_pKctF":{"name":"tryRecover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE10tryRecover2on5token_ACyxsAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgAHsAD_pKctF":{"name":"tryRecover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE10tryRecover2on5token_ACyxsAD_pGAA0B7ContextO_AA0B17InvalidationTokenVSgACyxqd__GsAD_pKctsADRd__lF":{"name":"tryRecover(on:token:_:)","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV2eeoiySbACyxq_G_AEtFZ":{"name":"==(_:_:)","abstract":"Two Promise
s compare as equal if they represent the same promise.
Returns a value that can be used to cancel this promise without holding onto the full promise.
","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseV9withTokenyAA0dB0Vyxq_GAA0b12InvalidationD0VF":{"name":"withToken(_:)","abstract":"Returns a new TokenPromise
that wraps the receiver.
Returns a Promise
that fulfills with the given value after a delay.
Returns a Promise
that rejects with the given error after a delay.
Returns a Promise
that resolves with the given result after a delay.
Returns a new Promise
that adopts the receiver’s result after a delay.
Returns a Promise
that is rejected with an error if the receiver does not resolve within","parent_name":"Promise"},"Structs/Promise.html#/s:12Tomorrowland7PromiseVAAs5Error_pRs_rlE7timeout2on5delayACyxsAD_pGAA0B7ContextO_SdtF":{"name":"timeout(on:delay:)","abstract":"
Returns a Promise
that is rejected with an error if the receiver does not resolve within","parent_name":"Promise"},"Structs/DelayedPromise.html#/s:12Tomorrowland14DelayedPromiseV8Resolvera":{"name":"Resolver","abstract":"
The type of the promise resolver. See Promise<Value,Error>.Resolver
.
Returns a new DelayedPromise
that can be resolved with the given block.
Returns a Promise
that asynchronously contains the value of the computation.
DelayedPromise
is like a Promise
but it doesn’t invoke its callback until the .promise
"},"Structs/Promise.html":{"name":"Promise","abstract":"
A Promise
is a construct that will eventually hold a value or error, and can invoke callbacks"},"Structs.html#/s:12Tomorrowland18PromiseCancellableV":{"name":"PromiseCancellable","abstract":"
A type that can be used to cancel a promise without holding onto the full promise.
"},"Structs/PromiseInvalidationToken.html":{"name":"PromiseInvalidationToken","abstract":"An invalidation token that can be used to cancel callbacks registered to a Promise
.
A Promise
adapter that automatically applies a PromiseInvalidationToken
.
Waits on an array of Promise
s and returns a Promise
that is fulfilled with an array of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled_____3qos15cancelOnFailureAA7PromiseVyx_q_q0_q1_q2_q3_tq4_GAGyxq4_G_AGyq_q4_GAGyq0_q4_GAGyq1_q4_GAGyq2_q4_GAGyq3_q4_G8Dispatch0I3QoSV0J6SClassOSbtr5_lF":{"name":"when(fulfilled:_:_:_:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled____3qos15cancelOnFailureAA7PromiseVyx_q_q0_q1_q2_tq3_GAGyxq3_G_AGyq_q3_GAGyq0_q3_GAGyq1_q3_GAGyq2_q3_G8Dispatch0I3QoSV0J6SClassOSbtr4_lF":{"name":"when(fulfilled:_:_:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled___3qos15cancelOnFailureAA7PromiseVyx_q_q0_q1_tq2_GAGyxq2_G_AGyq_q2_GAGyq0_q2_GAGyq1_q2_G8Dispatch0I3QoSV0J6SClassOSbtr3_lF":{"name":"when(fulfilled:_:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled__3qos15cancelOnFailureAA7PromiseVyx_q_q0_tq1_GAGyxq1_G_AGyq_q1_GAGyq0_q1_G8Dispatch0I3QoSV0J6SClassOSbtr2_lF":{"name":"when(fulfilled:_:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when9fulfilled_3qos15cancelOnFailureAA7PromiseVyx_q_tq0_GAGyxq0_G_AGyq_q0_G8Dispatch0I3QoSV0J6SClassOSbtr1_lF":{"name":"when(fulfilled:_:qos:cancelOnFailure:)","abstract":"
Waits on a tuple of Promise
s and returns a Promise
that is fulfilled with a tuple of the"},"Functions.html#/s:12Tomorrowland4when5first15cancelRemainingAA7PromiseVyxq_GSayAGG_Sbtr0_lF":{"name":"when(first:cancelRemaining:)","abstract":"
Returns a Promise
that is resolved with the result of the first resolved input Promise
.
The promise did not resolve within the given interval.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:12Tomorrowland19PromiseTimeoutErrorO8rejectedyACyxGxcAEmlF":{"name":"rejected(_:)","abstract":"The promise was rejected with an error.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:10Foundation13CustomNSErrorP13errorUserInfoSDySSypGvp":{"name":"errorUserInfo","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:12Tomorrowland19PromiseTimeoutErrorOAASQRzlE2eeoiySbACyxG_AEtFZ":{"name":"==(_:_:)","abstract":"Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:12Tomorrowland19PromiseTimeoutErrorOAASQRzlE2neoiySbACyxG_AEtFZ":{"name":"!=(_:_:)","abstract":"Returns a Boolean value indicating whether two values are not equal.
","parent_name":"PromiseTimeoutError"},"Enums/PromiseTimeoutError.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseTimeoutError"},"Enums/NoError.html#/s:12Tomorrowland7NoErrorO2eeoiySbAC_ACtFZ":{"name":"==(_:_:)","abstract":"Returns a Boolean value indicating whether two values are equal.
","parent_name":"NoError"},"Enums/NoError.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"NoError"},"Enums/NoError.html#/s:SE6encode2toys7Encoder_p_tKF":{"name":"encode(to:)","parent_name":"NoError"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO5valueyACyxq_GxcAEmr0_lF":{"name":"value(_:)","abstract":"The value the promise was fulfilled with.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO5erroryACyxq_Gq_cAEmr0_lF":{"name":"error(_:)","abstract":"The error the promise was rejected with.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO9cancelledyACyxq_GAEmr0_lF":{"name":"cancelled","abstract":"The promise was cancelled.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO5valuexSgvp":{"name":"value","abstract":"Returns the contained value if the result is .value
, otherwise nil
.
Returns the contained error if the result is .error
, otherwise nil
.
Returns true
if the result is .cancelled
, otherwise false
.
Maps a successful result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO8mapErroryACyxqd__Gqd__q_KXEKlF":{"name":"mapError(_:)","abstract":"Maps a rejected result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO7flatMapyACyqd__q_GAExKXEKlF":{"name":"flatMap(_:)","abstract":"Maps a successful result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultO12flatMapErroryACyxqd__GAEq_KXEKlF":{"name":"flatMapError(_:)","abstract":"Maps a rejected result through a block and returns the new result.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultOAASQRzSQR_rlE2eeoiySbACyxq_G_AEtFZ":{"name":"==(_:_:)","abstract":"Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:12Tomorrowland13PromiseResultOAASQRzSQR_rlE2neoiySbACyxq_G_AEtFZ":{"name":"!=(_:_:)","abstract":"Returns a Boolean value indicating whether two values are not equal.
","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:SE6encode2toys7Encoder_p_tKF":{"name":"encode(to:)","parent_name":"PromiseResult"},"Enums/PromiseResult.html#/s:Se4fromxs7Decoder_p_tKcfc":{"name":"init(from:)","parent_name":"PromiseResult"},"Enums/PromiseCallbackError.html#/c:@M@Tomorrowland@E@TWLPromiseCallbackError@TWLPromiseCallbackErrorAPIMismatch":{"name":"apiMismatch","abstract":"The callback did not conform to the expected API.
","parent_name":"PromiseCallbackError"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO4mainyA2CmF":{"name":"main","abstract":"Execute on the main queue.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO10backgroundyA2CmF":{"name":"background","abstract":"Execute on a dispatch queue with the .background
QoS.
Execute on a dispatch queue with the .utility
QoS.
Execute on a dispatch queue with the .default
QoS.
Execute on a dispatch queue with the .userInitiated
QoS.
Execute on a dispatch queue with the .userInteractive
QoS.
Execute on the specified dispatch queue.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO14operationQueueyACSo011NSOperationE0CcACmF":{"name":"operationQueue(_:)","abstract":"Execute on the specified operation queue.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO9immediateyA2CmF":{"name":"immediate","abstract":"Execute synchronously.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:12Tomorrowland14PromiseContextO4autoACvpZ":{"name":"auto","abstract":"Returns .main
when accessed from the main thread, otherwise .default
.
Returns the PromiseContext
that corresponds to a given Dispatch QoS class.
Returns a Boolean value indicating whether two values are equal.
","parent_name":"PromiseContext"},"Enums/PromiseContext.html#/s:SH9hashValueSivp":{"name":"hashValue","parent_name":"PromiseContext"},"Enums/PromiseContext.html":{"name":"PromiseContext","abstract":"The context in which a Promise body or callback is evaluated.
"},"Enums/PromiseCallbackError.html":{"name":"PromiseCallbackError","abstract":"An error potentially returned from Promise.Resolver.handleCallback(isCancelError:)
.
The result of a resolved promise.
"},"Enums/NoError.html":{"name":"NoError","abstract":"NoError
is a type that cannot be constructed.
The error type returned from Promise.timeout
.
The following enumerations are available globally.
"},"Functions.html":{"name":"Functions","abstract":"The following functions are available globally.
"},"Structs.html":{"name":"Structures","abstract":"The following structures are available globally.
"},"Typealiases.html":{"name":"Type Aliases","abstract":"The following type aliases are available globally.
"}} \ No newline at end of file