await-delay
use delay/sleep to async/await ES7
Installation
npm i --save await-delay
Usage
async { // Do something // Wait for 2 seconds await // Do things after the delay}
use delay/sleep to async/await ES7
npm i --save await-delay
async { // Do something // Wait for 2 seconds await // Do things after the delay}
npm i await-delay
1,166
1.0.0
GPL-3.0