FMIceLinkFuture Class Reference

Inherits from FMIceLinkFutureBase : NSObject
Conforms to T
__covariant
Declared in FMIceLinkFuture.h
FMIceLinkFuture.m

Overview

A future.

The type of the result.

– failWithRejectAction:

Appends a handler to be executed when the promise is rejected.
- (FMIceLinkFuture<T> *)failWithRejectAction:(FMIceLinkAction1<NSException*> *)rejectAction

Parameters

rejectAction

The reject action.

Discussion

Appends a handler to be executed when the promise is rejected.

Declared In

FMIceLinkFuture.h

– failWithRejectActionBlock

Appends a handler to be executed when the promise is rejected.

@inlineparam rejectActionBlock The reject action.

- (FMIceLinkFuture<T> *( ^ ) ( void ( ^ ) ( NSException *) ))failWithRejectActionBlock

Discussion

Appends a handler to be executed when the promise is rejected.

@inlineparam rejectActionBlock The reject action.

Declared In

FMIceLinkFuture.h

– failWithRejectActionBlock:

Appends a handler to be executed when the promise is rejected.
- (FMIceLinkFuture<T> *)failWithRejectActionBlock:(void ( ^ ) ( NSException *))rejectActionBlock

Parameters

rejectActionBlock

The reject action.

Discussion

Appends a handler to be executed when the promise is rejected.

Declared In

FMIceLinkFuture.h

– failWithRejectFunction:

Appends a handler to be executed when the promise is rejected.
- (FMIceLinkFuture<T> *)failWithRejectFunction:(FMIceLinkFunction1<NSException*,FMIceLinkFuture<T> *> *)rejectFunction

Parameters

rejectFunction

The reject function.

Discussion

Appends a handler to be executed when the promise is rejected.

Declared In

FMIceLinkFuture.h

– failWithRejectFunctionBlock

Appends a handler to be executed when the promise is rejected.

@inlineparam rejectFunctionBlock The reject function.

- (FMIceLinkFuture<T> *( ^ ) ( FMIceLinkFuture<T> *( ^ ) ( NSException *) ))failWithRejectFunctionBlock

Discussion

Appends a handler to be executed when the promise is rejected.

@inlineparam rejectFunctionBlock The reject function.

Declared In

FMIceLinkFuture.h

– failWithRejectFunctionBlock:

Appends a handler to be executed when the promise is rejected.
- (FMIceLinkFuture<T> *)failWithRejectFunctionBlock:(FMIceLinkFuture<T> *( ^ ) ( NSException *))rejectFunctionBlock

Parameters

rejectFunctionBlock

The reject function.

Discussion

Appends a handler to be executed when the promise is rejected.

Declared In

FMIceLinkFuture.h

– thenWithResolveAction:

Appends a handler to be executed when the promise is resolved.
- (FMIceLinkFuture<T> *)thenWithResolveAction:(FMIceLinkAction1<T> *)resolveAction

Parameters

resolveAction

The resolve action.

Discussion

Appends a handler to be executed when the promise is resolved.

Declared In

FMIceLinkFuture.h

– thenWithResolveAction:rejectAction:

Appends handlers to be executed when the promise is resolved or rejected.
- (FMIceLinkFuture<T> *)thenWithResolveAction:(FMIceLinkAction1<T> *)resolveAction rejectAction:(FMIceLinkAction1<NSException*> *)rejectAction

Parameters

resolveAction

The resolve action.

rejectAction

The reject action.

Discussion

Appends handlers to be executed when the promise is resolved or rejected.

Declared In

FMIceLinkFuture.h

– thenWithResolveActionBlock

Appends a handler to be executed when the promise is resolved.

@inlineparam resolveActionBlock The resolve action.

- (FMIceLinkFuture<T> *( ^ ) ( void ( ^ ) ( T ) ))thenWithResolveActionBlock

Discussion

Appends a handler to be executed when the promise is resolved.

@inlineparam resolveActionBlock The resolve action.

Declared In

FMIceLinkFuture.h

– thenWithResolveActionBlock:

Appends a handler to be executed when the promise is resolved.
- (FMIceLinkFuture<T> *)thenWithResolveActionBlock:(void ( ^ ) ( T ))resolveActionBlock

Parameters

resolveActionBlock

The resolve action.

Discussion

Appends a handler to be executed when the promise is resolved.

Declared In

FMIceLinkFuture.h

– thenWithResolveActionBlock:rejectActionBlock:

Appends handlers to be executed when the promise is resolved or rejected.
- (FMIceLinkFuture<T> *)thenWithResolveActionBlock:(void ( ^ ) ( T ))resolveActionBlock rejectActionBlock:(void ( ^ ) ( NSException *))rejectActionBlock

Parameters

resolveActionBlock

The resolve action.

rejectActionBlock

The reject action.

Discussion

Appends handlers to be executed when the promise is resolved or rejected.

Declared In

FMIceLinkFuture.h

– thenWithResolveActionBlockAndRejectActionBlock

Appends handlers to be executed when the promise is resolved or rejected.

@inlineparam resolveActionBlock The resolve action. @inlineparam rejectActionBlock The reject action.

- (FMIceLinkFuture<T> *( ^ ) ( void ( ^ ) ( T ) , void ( ^ ) ( NSException *) ))thenWithResolveActionBlockAndRejectActionBlock

Discussion

Appends handlers to be executed when the promise is resolved or rejected.

@inlineparam resolveActionBlock The resolve action. @inlineparam rejectActionBlock The reject action.

Declared In

FMIceLinkFuture.h

– thenWithResolveFunction:

Appends a handler to be executed when the promise is resolved.
- (FMIceLinkFuture<id> *)thenWithResolveFunction:(FMIceLinkFunction1<T,FMIceLinkFuture<id> *> *)resolveFunction

Parameters

resolveFunction

The resolve function.

Discussion

Appends a handler to be executed when the promise is resolved.

Declared In

FMIceLinkFuture.h

– thenWithResolveFunction:rejectAction:

Appends handlers to be executed when the promise is resolved or rejected.
- (FMIceLinkFuture<id> *)thenWithResolveFunction:(FMIceLinkFunction1<T,FMIceLinkFuture<id> *> *)resolveFunction rejectAction:(FMIceLinkAction1<NSException*> *)rejectAction

Parameters

resolveFunction

The resolve function.

rejectAction

The reject action.

Discussion

Appends handlers to be executed when the promise is resolved or rejected.

Declared In

FMIceLinkFuture.h

– thenWithResolveFunctionBlock

Appends a handler to be executed when the promise is resolved.

@inlineparam resolveFunctionBlock The resolve function.

- (FMIceLinkFuture<id> *( ^ ) ( FMIceLinkFuture<id> *( ^ ) ( T ) ))thenWithResolveFunctionBlock

Discussion

Appends a handler to be executed when the promise is resolved.

@inlineparam resolveFunctionBlock The resolve function.

Declared In

FMIceLinkFuture.h

– thenWithResolveFunctionBlock:

Appends a handler to be executed when the promise is resolved.
- (FMIceLinkFuture<id> *)thenWithResolveFunctionBlock:(FMIceLinkFuture<id> *( ^ ) ( T ))resolveFunctionBlock

Parameters

resolveFunctionBlock

The resolve function.

Discussion

Appends a handler to be executed when the promise is resolved.

Declared In

FMIceLinkFuture.h

– thenWithResolveFunctionBlock:rejectActionBlock:

Appends handlers to be executed when the promise is resolved or rejected.
- (FMIceLinkFuture<id> *)thenWithResolveFunctionBlock:(FMIceLinkFuture<id> *( ^ ) ( T ))resolveFunctionBlock rejectActionBlock:(void ( ^ ) ( NSException *))rejectActionBlock

Parameters

resolveFunctionBlock

The resolve function.

rejectActionBlock

The reject action.

Discussion

Appends handlers to be executed when the promise is resolved or rejected.

Declared In

FMIceLinkFuture.h

– thenWithResolveFunctionBlockAndRejectActionBlock

Appends handlers to be executed when the promise is resolved or rejected.

@inlineparam resolveFunctionBlock The resolve function. @inlineparam rejectActionBlock The reject action.

- (FMIceLinkFuture<id> *( ^ ) ( FMIceLinkFuture<id> *( ^ ) ( T ) , void ( ^ ) ( NSException *) ))thenWithResolveFunctionBlockAndRejectActionBlock

Discussion

Appends handlers to be executed when the promise is resolved or rejected.

@inlineparam resolveFunctionBlock The resolve function. @inlineparam rejectActionBlock The reject action.

Declared In

FMIceLinkFuture.h

– waitForPromise

Blocks the current thread from proceeding until the future state has been resolved or rejected.
- (void)waitForPromise

Discussion

Blocks the current thread from proceeding until the future state has been resolved or rejected.

Declared In

FMIceLinkFuture.h

– waitForResult

Blocks the current thread from proceeding until the future has a result. Throws an exception if the promise is rejected.
- (T)waitForResult

Discussion

Blocks the current thread from proceeding until the future has a result. Throws an exception if the promise is rejected.

Declared In

FMIceLinkFuture.h