Class PromiseGenerator
A Promise pool manager.
Namespace: UnityEngine.Promise
Assembly: solution.dll
Syntax
public class PromiseGenerator
Constructors
| Name | Description |
|---|---|
| PromiseGenerator() | Creates a new promise generator. |
Methods
| Name | Description |
|---|---|
| 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. |
| 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. |
| Wait(IEnumerable<Deferred>, bool) | Waits for a list of deferred to be done. |