Skip to content

API reference / @node-ts/bus-core / sleep

Function: sleep() ​

ts
function sleep(timeoutMs): Promise<void>;

Defined in: packages/bus-core/src/util/sleep.ts:5

Returns a promise that resolves when the timeout expires

Parameters ​

ParameterTypeDescription
timeoutMsnumberHow long to wait until the promise resolves

Returns ​

Promise<void>

Released under the MIT License.