@spudly/sleep
v0.1.0
Published
Returns a promise that resolves after a specified number of milliseconds.
Downloads
1
Readme
@spudly/sleep
Returns a promise that resolves after a specified number of milliseconds.
Installation
npm install --save @spudly/sleep
Usage
import sleep from '@spudly/sleep';
const doSomething = async () => {
// do some stuff
await sleep(1000);
// do some more stuff
};