A future. 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 |
| (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... | |
| (void) | - waitForPromise |
| Blocks the current thread from proceeding until the future state has been resolved or rejected. More... | |
| (void) | - waitForPromiseWithMillisecondsTimeout: |
| Blocks the current thread from proceeding until the future state has been resolved or rejected or if the timeout period elapses. More... | |
| (T) | - waitForResult |
| Blocks the current thread from proceeding until the future has a result. More... | |
| (T) | - waitForResultWithMillisecondsTimeout: |
| Blocks the current thread from proceeding until the future has a result. More... | |
Class Methods | |
| (FMLiveSwitchFuture *) | + future |
Protected Attributes | |
| __pad0__: FMLiveSwitchFutureBase<T>- (FMLiveSwitchFuture<T>*) failWithRejectAction:(FMLiveSwitchAction1<NSException*>*)rejectAction | |
A future.
| - (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. |
| + (FMLiveSwitchFuture*) future |
| - (instancetype) init |
| - (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.
| - (void) waitForPromise |
Blocks the current thread from proceeding until the future state has been resolved or rejected.
| - (void) waitForPromiseWithMillisecondsTimeout: | (int) | millisecondsTimeout |
Blocks the current thread from proceeding until the future state has been resolved or rejected or if the timeout period elapses.
| millisecondsTimeout | The number of milliseconds to wait before timing out. |
| - T waitForResult |
Blocks the current thread from proceeding until the future has a result.
Throws an exception if the promise is rejected.
| - T waitForResultWithMillisecondsTimeout: | (int) | millisecondsTimeout |
Blocks the current thread from proceeding until the future has a result.
Throws an exception if the promise is rejected or if the timeout period elapses.
| millisecondsTimeout | The number of milliseconds to wait before timing out. |
|
protected |