Interface IPendingPromise<PromisedT>
Interface for a promise that can be rejected or resolved.
Inherited Members
Namespace: RSG
Syntax
public interface IPendingPromise<PromisedT> : IRejectable
Type Parameters
| Name | Description |
|---|---|
| PromisedT |
Properties
Id
ID of the promise, useful for debugging.
Declaration
int Id { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
ReportProgress(Single)
Report progress in a promise.
Declaration
void ReportProgress(float progress)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | progress |
Resolve(PromisedT)
Resolve the promise with a particular value.
Declaration
void Resolve(PromisedT value)
Parameters
| Type | Name | Description |
|---|---|---|
| PromisedT | value |