Delay
Description
An opaque awaitable type, specifically used in coroutines, representing an abstract delay time.
await Delay(5); // awaits 5 model time units
var delay = Delay.seconds(22); // represents a 22 second delay
await delay; // wait for 22 seconds
await delay; // wait again for another 22 seconds
A Delay represents an 'abstract' delay time in that the suspend/resume mechanism is not started when the Delay object is created, but each time the await statement is invoked, resulting in possibly multiple different delay actions.
Constructor
Delay | Returns a delay object representing a delay time in model time units. |
Static Methods
days | Returns a delay object representing a delay time in days. |
hours | Returns a delay object representing a delay time in hours. |
minutes | Returns a delay object representing a delay time in minutes. |
seconds | Returns a delay object representing a delay time in seconds. |
Details
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com