Home > @rushstack/node-core-library > Async > sleep

Async.sleep() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Return a promise that resolves after the specified number of milliseconds.

Signature:

static sleep(ms: number): Promise<void>;

Parameters

Parameter Type Description
ms number  

Returns:

Promise<void>