await-delay
v1.0.0
Published
use delay/sleep to async/await ES7
Downloads
3,731
Maintainers
Readme
await-delay
use delay/sleep to async/await ES7
Installation
npm i --save await-delay
Usage
import delay from 'await-delay'
async () => {
// Do something
// Wait for 2 seconds
await delay(2000)
// Do things after the delay
}