Method GetPromiseHandles
GetPromiseHandles(out Deferred, out Completer)
Take a promise out of the pool, or create one if it is empty, and set the two given handlers to handle this promise.
Declaration
public void GetPromiseHandles(out Deferred deferred, out Completer completer)
Parameters
Type | Name | Description |
---|---|---|
Deferred | deferred | A handler to read data from the taken promise. |
Completer | completer | A handler to write data to the taken promise. |
GetPromiseHandles<TResult>(out Deferred<TResult>, out Completer<TResult>)
Extract a promise from the pool, or create one if it is empty, and set the two given handlers to handle this promise.
Declaration
public void GetPromiseHandles<TResult>(out Deferred<TResult> deferred, out Completer<TResult> completer)
Parameters
Type | Name | Description |
---|---|---|
Deferred<TResult> | deferred | A handler to read data from the taken promise. |
Completer<TResult> | completer | A handler to write data to the taken promise. |
Type Parameters
Name | Description |
---|---|
TResult | Type of the result of the promise. |