delay
Returns a Promise which is resolved after given milliseconds.
function delay(milliseconds: number): Promise<void>;
Example
await delay(3000);
// After 3 seconds
doSomething();
Returns a Promise which is resolved after given milliseconds.
function delay(milliseconds: number): Promise<void>;
await delay(3000);
// After 3 seconds
doSomething();