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