Skip to content

Futurable.sleep() ​

Static sleep utility.

Syntax ​

typescript
Futurable.sleep(ms: number): Futurable<void>

Example ​

typescript
await Futurable.sleep(1000);
console.log('1 second passed');

See Also ​

Released under the MIT License.