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