Skip to content

Secbone/es7-sleep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

es7-sleep

NPM version Build Status Downloads

ES7 sleep function with async/await

Install

npm install es7-sleep

Usage

import sleep from "es7-sleep";

async () => {
    ...

    while(!result) {
        await sleep(1000);
        result = redis.get(key);
    }

    ...
}

License

MIT

About

ES7 sleep function with async/await

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published