Struct Completer<TResult>
Handle to settle a promise.
Namespace: UnityEngine.Promise
Assembly: solution.dll
Syntax
public struct Completer<TResult>
Type Parameters
| Name | Description |
|---|---|
| TResult | Type of the result this completer can accept in its Resolve(TResult) method. |
Properties
| Name | Description |
|---|---|
| None | Handle to settle a promise. |
Methods
| Name | Description |
|---|---|
| Reject(Exception) | Rejects the handled promise for the given reason. |
| Resolve(TResult) | Fulfills the handled promise with the given data. |
| SetProgression(int, int) | Sets the progression of the promise. |
Operators
| Name | Description |
|---|---|
| implicit operator Rejectable(Completer<TResult>) | Can be used to replace a completer for process you don't need the feedback from. |