Interface IPromiseTimer
Namespace: RSG
Syntax
public interface IPromiseTimer
Methods
Cancel(IPromise)
Cancel a waiting promise and reject it immediately.
Declaration
bool Cancel(IPromise promise)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Update(Single)
Update all pending promises. Must be called for the promises to progress and resolve at all.
Declaration
void Update(float deltaTime)
Parameters
Type |
Name |
Description |
System.Single |
deltaTime |
|
WaitFor(Single)
Resolve the returned promise once the time has elapsed
Declaration
IPromise WaitFor(float seconds)
Parameters
Type |
Name |
Description |
System.Single |
seconds |
|
Returns
WaitUntil(Func<TimeData, Boolean>)
Resolve the returned promise once the predicate evaluates to true
Declaration
IPromise WaitUntil(Func<TimeData, bool> predicate)
Parameters
Type |
Name |
Description |
System.Func<TimeData, System.Boolean> |
predicate |
|
Returns
WaitWhile(Func<TimeData, Boolean>)
Resolve the returned promise once the predicate evaluates to false
Declaration
IPromise WaitWhile(Func<TimeData, bool> predicate)
Parameters
Type |
Name |
Description |
System.Func<TimeData, System.Boolean> |
predicate |
|
Returns