Skip to main content

core.sleep

Home > @medplum/core > sleep

sleep() function

Sleeps for the specified number of milliseconds.

Signature:

sleep: (ms: number) => Promise<void>

Parameters

Parameter

Type

Description

ms

number

Time delay in milliseconds

Returns:

Promise<void>

A promise that resolves after the specified number of milliseconds.