@anmiles/sleep
v4.0.1
Published
Asynchronous sleep
Downloads
41
Readme
@anmiles/sleep
Asynchronous sleep
Installation
npm install @anmiles/sleep
Usage
import sleep from '@anmiles/sleep';
async main(){
console.log('Begin');
await sleep(500);
console.log('Continue after 0.5s');
}