1.0.2 • Published 2 years ago
@ameganix/sleep v1.0.2
Sleep
Interrupts execution for the specified number of ms
Installing
Package manager
Using npm:
$ npm install @ameganix/sleepUsing yarn:
$ yarn add @ameganix/sleepOnce the package is installed, you can import the function using require approach:
const sleep = require('@ameganix/sleep');Example
await sleep(1000);