Skip to content

evheniy/promise-pause-timeout

Repository files navigation

Promise pause timeout

It could be useful when you need to make pause in promise pipeline

NPM

npm version Build Status Coverage Status Linux Build Windows Build

Dependency Status devDependency Status NSP Status

License GitHub stars GitHub forks GitHub issues Twitter

Installation

npm i -S promise-pause-timeout

Example

const pause = require('promise-pause-timeout');

(async () => {
    
    const data1 = await fetch(url1);
    await pause(1000);
    const data2 = await fetch(url2);
    
})();

About

Promise timeout

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published