Struct Deferred<TResult>
Handle to read data of a promise.
Namespace: UnityEngine.GameFoundation.Promise
Assembly: solution.dll
Syntax
public struct Deferred<TResult>
Type Parameters
Name | Description |
---|---|
TResult | Type of the result of the async operation. |
Properties
Name | Description |
---|---|
error | The exception that prevented the handled promise to be fulfilled if it has been rejected. |
isDone | A flag to determine if the handled promise has been fulfilled or rejected. |
isFulfilled | A flag to determine if the handled promise has been fulfilled. |
result | The result of the async operation if the handled promise could be fulfilled. |
Methods
Name | Description |
---|---|
Release() | Reset the handled promise in order to recycle it. |
Wait() | Get the yield instruction related to the handled promise. |