Skip to content

sleep

Create a promise that resolves after a given amount of time.

Usage

await sleep(1000);

Installation

Terminal window
npx atmx add helper sleep