A promise. More...
Instance Methods | |
(NSException *) | - failWithRejectActionBlock |
Appends a handler to be executed when the promise is rejected. More... | |
(FMLiveSwitchFuture< T > *) | - failWithRejectActionBlock: |
Appends a handler to be executed when the promise is rejected. More... | |
(FMLiveSwitchFuture< T > *) | - failWithRejectFunction: |
Appends a handler to be executed when the promise is rejected. More... | |
(NSException *) | - failWithRejectFunctionBlock |
Appends a handler to be executed when the promise is rejected. More... | |
(FMLiveSwitchFuture< T > *) | - failWithRejectFunctionBlock: |
Appends a handler to be executed when the promise is rejected. More... | |
(instancetype) | - init |
Creates a new promise. More... | |
(instancetype) | - initWithCallback: |
Creates a promise with a resolve callback and a reject callback. More... | |
(instancetype) | - initWithCallbackBlock: |
Creates a promise with a resolve callback and a reject callback. More... | |
(FMLiveSwitchFuture< T > *) | - thenWithResolveAction: |
Appends a handler to be executed when the promise is resolved. More... | |
(FMLiveSwitchFuture< T > *) | - thenWithResolveAction:rejectAction: |
Appends handlers to be executed when the promise is resolved or rejected. More... | |
(T) | - thenWithResolveActionBlock |
Appends a handler to be executed when the promise is resolved. More... | |
(FMLiveSwitchFuture< T > *) | - thenWithResolveActionBlock: |
Appends a handler to be executed when the promise is resolved. More... | |
(FMLiveSwitchFuture< T > *) | - thenWithResolveActionBlock:rejectActionBlock: |
Appends handlers to be executed when the promise is resolved or rejected. More... | |
(NSException *) | - thenWithResolveActionBlockAndRejectActionBlock |
Appends handlers to be executed when the promise is resolved or rejected. More... | |
(FMLiveSwitchFuture< id > *) | - thenWithResolveFunction: |
Appends a handler to be executed when the promise is resolved. More... | |
(FMLiveSwitchFuture< id > *) | - thenWithResolveFunction:rejectAction: |
Appends handlers to be executed when the promise is resolved or rejected. More... | |
(T) | - thenWithResolveFunctionBlock |
Appends a handler to be executed when the promise is resolved. More... | |
(FMLiveSwitchFuture< id > *) | - thenWithResolveFunctionBlock: |
Appends a handler to be executed when the promise is resolved. More... | |
(FMLiveSwitchFuture< id > *) | - thenWithResolveFunctionBlock:rejectActionBlock: |
Appends handlers to be executed when the promise is resolved or rejected. More... | |
(NSException *) | - thenWithResolveFunctionBlockAndRejectActionBlock |
Appends handlers to be executed when the promise is resolved or rejected. More... | |
Class Methods | |
(FMLiveSwitchPromise *) | + promise |
Creates a new promise. More... | |
(FMLiveSwitchPromise *) | + promiseWithCallback: |
Creates a promise with a resolve callback and a reject callback. More... | |
(FMLiveSwitchPromise *) | + promiseWithCallbackBlock: |
Creates a promise with a resolve callback and a reject callback. More... | |
(FMLiveSwitchFuture< id > *) | + wrapAsyncWithCallbackAction: |
Creates a promise and resolves it after invoking a callback action, or rejects it if an exception is thrown. More... | |
(FMLiveSwitchFuture< id > *) | + wrapAsyncWithCallbackFunction: |
Creates a promise and resolves it using the result from a callback function, or rejects it if an exception is thrown. More... | |
(void) | + wrapAsyncWithCallbackFunctionBlock |
Creates a promise and resolves it using the result from a callback function, or rejects it if an exception is thrown. More... | |
(FMLiveSwitchFuture< id > *) | + wrapAsyncWithCallbackFunctionBlock: |
Creates a promise and resolves it using the result from a callback function, or rejects it if an exception is thrown. More... | |
(FMLiveSwitchFuture< id > *) | + wrapWithCallbackAction: |
Creates a promise and resolves it after invoking a callback action, or rejects it if an exception is thrown. More... | |
(FMLiveSwitchFuture< id > *) | + wrapWithCallbackFunction: |
Creates a promise and resolves it using the result from a callback function, or rejects it if an exception is thrown. More... | |
(void) | + wrapWithCallbackFunctionBlock |
Creates a promise and resolves it using the result from a callback function, or rejects it if an exception is thrown. More... | |
(FMLiveSwitchFuture< id > *) | + wrapWithCallbackFunctionBlock: |
Creates a promise and resolves it using the result from a callback function, or rejects it if an exception is thrown. More... | |
Protected Attributes | |
__pad0__: FMLiveSwitchPromiseBase<T>- (FMLiveSwitchFuture<T>*) failWithRejectAction:(FMLiveSwitchAction1<NSException*>*)rejectAction | |
A promise.
- (NSException*) failWithRejectActionBlock |
Appends a handler to be executed when the promise is rejected.
@inlineparam rejectActionBlock The reject action.
- (FMLiveSwitchFuture<T>*) failWithRejectActionBlock: | (void(^)(NSException *)) | rejectActionBlock |
Appends a handler to be executed when the promise is rejected.
rejectActionBlock | The reject action. |
- (FMLiveSwitchFuture<T>*) failWithRejectFunction: | (FMLiveSwitchFunction1< NSException *, FMLiveSwitchFuture< T > * > *) | rejectFunction |
Appends a handler to be executed when the promise is rejected.
rejectFunction | The reject function. |
- (NSException*) failWithRejectFunctionBlock |
Appends a handler to be executed when the promise is rejected.
@inlineparam rejectFunctionBlock The reject function.
- (FMLiveSwitchFuture<T>*) failWithRejectFunctionBlock: | (FMLiveSwitchFuture< T > *(^)(NSException *)) | rejectFunctionBlock |
Appends a handler to be executed when the promise is rejected.
rejectFunctionBlock | The reject function. |
- (instancetype) init |
Creates a new promise.
- (instancetype) initWithCallback: | (FMLiveSwitchAction2< FMLiveSwitchAction1< T > *, FMLiveSwitchAction1< NSException * > * > *) | callback |
Creates a promise with a resolve callback and a reject callback.
- (instancetype) initWithCallbackBlock: | (void(^)(FMLiveSwitchAction1< T > *, FMLiveSwitchAction1< NSException * > *)) | callbackBlock |
Creates a promise with a resolve callback and a reject callback.
+ (FMLiveSwitchPromise*) promise |
Creates a new promise.
+ (FMLiveSwitchPromise*) promiseWithCallback: | (FMLiveSwitchAction2< FMLiveSwitchAction1< T > *, FMLiveSwitchAction1< NSException * > * > *) | callback |
Creates a promise with a resolve callback and a reject callback.
+ (FMLiveSwitchPromise*) promiseWithCallbackBlock: | (void(^)(FMLiveSwitchAction1< T > *, FMLiveSwitchAction1< NSException * > *)) | callbackBlock |
Creates a promise with a resolve callback and a reject callback.
- (FMLiveSwitchFuture<T>*) thenWithResolveAction: | (FMLiveSwitchAction1< T > *) | resolveAction |
Appends a handler to be executed when the promise is resolved.
resolveAction | The resolve action. |
- (FMLiveSwitchFuture<T>*) thenWithResolveAction: | (FMLiveSwitchAction1< T > *) | resolveAction | |
rejectAction: | (FMLiveSwitchAction1< NSException * > *) | rejectAction | |
Appends handlers to be executed when the promise is resolved or rejected.
resolveAction | The resolve action. |
rejectAction | The reject action. |
- T thenWithResolveActionBlock |
Appends a handler to be executed when the promise is resolved.
@inlineparam resolveActionBlock The resolve action.
- (FMLiveSwitchFuture<T>*) thenWithResolveActionBlock: | (void(^)(T)) | resolveActionBlock |
Appends a handler to be executed when the promise is resolved.
resolveActionBlock | The resolve action. |
- (FMLiveSwitchFuture<T>*) thenWithResolveActionBlock: | (void(^)(T)) | resolveActionBlock | |
rejectActionBlock: | (void(^)(NSException *)) | rejectActionBlock | |
Appends handlers to be executed when the promise is resolved or rejected.
resolveActionBlock | The resolve action. |
rejectActionBlock | The reject action. |
- (NSException*) thenWithResolveActionBlockAndRejectActionBlock |
Appends handlers to be executed when the promise is resolved or rejected.
@inlineparam resolveActionBlock The resolve action. @inlineparam rejectActionBlock The reject action.
- (FMLiveSwitchFuture<id>*) thenWithResolveFunction: | (FMLiveSwitchFunction1< T, FMLiveSwitchFuture< id > * > *) | resolveFunction |
Appends a handler to be executed when the promise is resolved.
resolveFunction | The resolve function. |
- (FMLiveSwitchFuture<id>*) thenWithResolveFunction: | (FMLiveSwitchFunction1< T, FMLiveSwitchFuture< id > * > *) | resolveFunction | |
rejectAction: | (FMLiveSwitchAction1< NSException * > *) | rejectAction | |
Appends handlers to be executed when the promise is resolved or rejected.
resolveFunction | The resolve function. |
rejectAction | The reject action. |
- T thenWithResolveFunctionBlock |
Appends a handler to be executed when the promise is resolved.
@inlineparam resolveFunctionBlock The resolve function.
- (FMLiveSwitchFuture<id>*) thenWithResolveFunctionBlock: | (FMLiveSwitchFuture< id > *(^)(T)) | resolveFunctionBlock |
Appends a handler to be executed when the promise is resolved.
resolveFunctionBlock | The resolve function. |
- (FMLiveSwitchFuture<id>*) thenWithResolveFunctionBlock: | (FMLiveSwitchFuture< id > *(^)(T)) | resolveFunctionBlock | |
rejectActionBlock: | (void(^)(NSException *)) | rejectActionBlock | |
Appends handlers to be executed when the promise is resolved or rejected.
resolveFunctionBlock | The resolve function. |
rejectActionBlock | The reject action. |
- (NSException*) thenWithResolveFunctionBlockAndRejectActionBlock |
Appends handlers to be executed when the promise is resolved or rejected.
@inlineparam resolveFunctionBlock The resolve function. @inlineparam rejectActionBlock The reject action.
+ (FMLiveSwitchFuture<id>*) wrapAsyncWithCallbackAction: | (FMLiveSwitchAction0 *) | callbackAction |
Creates a promise and resolves it after invoking a callback action, or rejects it if an exception is thrown.
The callback is always dispatched to the background.
callbackAction | The callback action. |
+ (FMLiveSwitchFuture<id>*) wrapAsyncWithCallbackFunction: | (FMLiveSwitchFunction0< id > *) | callbackFunction |
Creates a promise and resolves it using the result from a callback function, or rejects it if an exception is thrown.
The callback is always dispatched to the background.
callbackFunction | The callback function. |
+ (void) wrapAsyncWithCallbackFunctionBlock |
Creates a promise and resolves it using the result from a callback function, or rejects it if an exception is thrown.
The callback is always dispatched to the background.
@inlineparam callbackFunctionBlock The callback function.
+ (FMLiveSwitchFuture<id>*) wrapAsyncWithCallbackFunctionBlock: | (id(^)(void)) | callbackFunctionBlock |
Creates a promise and resolves it using the result from a callback function, or rejects it if an exception is thrown.
The callback is always dispatched to the background.
callbackFunctionBlock | The callback function. |
+ (FMLiveSwitchFuture<id>*) wrapWithCallbackAction: | (FMLiveSwitchAction0 *) | callbackAction |
Creates a promise and resolves it after invoking a callback action, or rejects it if an exception is thrown.
callbackAction | The callback action. |
+ (FMLiveSwitchFuture<id>*) wrapWithCallbackFunction: | (FMLiveSwitchFunction0< id > *) | callbackFunction |
Creates a promise and resolves it using the result from a callback function, or rejects it if an exception is thrown.
callbackFunction | The callback function. |
+ (void) wrapWithCallbackFunctionBlock |
Creates a promise and resolves it using the result from a callback function, or rejects it if an exception is thrown.
@inlineparam callbackFunctionBlock The callback function.
+ (FMLiveSwitchFuture<id>*) wrapWithCallbackFunctionBlock: | (id(^)(void)) | callbackFunctionBlock |
Creates a promise and resolves it using the result from a callback function, or rejects it if an exception is thrown.
callbackFunctionBlock | The callback function. |
|
protected |