PromiseT Class |
Namespace: FM.IceLink
The PromiseT type exposes the following members.
Name | Description | |
---|---|---|
![]() | PromiseT |
Creates a new promise.
|
![]() | PromiseT(Action2Action1T, Action1Exception) |
Creates a promise with a resolve callback and a reject callback.
|
Name | Description | |
---|---|---|
![]() | Exception |
Gets or sets the exception if rejected.
(Inherited from FutureBaseT.) |
![]() | Id |
Gets the identifier of this promise.
(Inherited from PromiseBaseT.) |
![]() | Result |
Gets or sets the result if resolved.
(Inherited from FutureBaseT.) |
![]() | State |
Gets or sets the current state.
(Inherited from FutureBaseT.) |
Name | Description | |
---|---|---|
![]() | DoAllR |
Internal DoAll.
(Inherited from PromiseBaseT.) |
![]() | Equals | (Inherited from Object.) |
![]() | Fail(Action1Exception) |
Appends a handler to be executed when the promise is rejected.
(Overrides FutureTFail(Action1Exception).) |
![]() | Fail(Function1Exception, FutureT) |
Appends a handler to be executed when the promise is rejected.
(Overrides FutureTFail(Function1Exception, FutureT).) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Process |
Processes the specified promise.
(Inherited from PromiseBaseT.) |
![]() | Reject |
Rejects the promise.
(Inherited from PromiseBaseT.) |
![]() | RejectAsync |
Rejects the promise asynchronously.
(Inherited from PromiseBaseT.) |
![]() | Resolve |
Resolves the promise.
(Inherited from PromiseBaseT.) |
![]() | ResolveAsync |
Resolves the promise asynchronously.
(Inherited from PromiseBaseT.) |
![]() | Then(Action1T) |
Appends a handler to be executed when the promise is resolved.
(Overrides FutureTThen(Action1T).) |
![]() | Then(Action1T, Action1Exception) |
Appends handlers to be executed when the promise is resolved or rejected.
(Overrides FutureTThen(Action1T, Action1Exception).) |
![]() | ThenR(Function1T, FutureR) |
Appends a handler to be executed when the promise is resolved.
(Inherited from FutureT.) |
![]() | ThenR(Function1T, FutureR) |
Appends a handler to be executed when the promise is resolved.
(Overrides FutureTThenR(Function1T, FutureR).) |
![]() | ThenR(Function1T, FutureR, Action1Exception) |
Appends handlers to be executed when the promise is resolved or rejected.
(Inherited from FutureT.) |
![]() | ThenR(Function1T, FutureR, Action1Exception) |
Appends handlers to be executed when the promise is resolved or rejected.
(Overrides FutureTThenR(Function1T, FutureR, Action1Exception).) |
![]() | ToString | (Inherited from Object.) |
![]() | WaitForPromise |
Blocks the current thread from proceeding
until the future state has been resolved or rejected.
(Inherited from FutureT.) |
![]() | WaitForResult |
Blocks the current thread from proceeding
until the future has a result. Throws an
exception if the promise is rejected.
(Inherited from FutureT.) |
![]() ![]() | Wrap(Action0) |
Creates a promise and resolves it after invoking a callback
action, or rejects it if an exception is thrown.
|
![]() ![]() | WrapR(Function0R) |
Creates a promise and resolves it using the result from a
callback function, or rejects it if an exception is thrown.
|
![]() ![]() | WrapAsync(Action0) |
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.
|
![]() ![]() | WrapAsyncR(Function0R) |
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.
|
Name | Description | |
---|---|---|
![]() | AsTaskT |
Converts a Future to a .NET Task.
(Defined by FutureExtensions.) |