Skip to content

yushuohuanxiu/sleep3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

sleep3

Aysnc sleep, used on ES6+ (async/await).
Support string parameters like '10s' '5m', and numeric parameters millisecond.

NPM

Installation

npm install sleep3

Usage

const sleep = require('sleep3');

(async () => {
    console.log('begin');
    await sleep('10s');
    console.log('end');
})();

Support string parameters

's', 'm', 'h', 'd'
like '3s', '2m', '1h35s'

About

Aysnc sleep, used on ES6+ (async/await).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published