async-pause
Asynchronous pause
How to install
npm install async-pause
How to use
import { asyncPause } from 'async-pause'
(async () => {
console.log('foo');
await asyncPause(1000);
console.log('bar'); // Will be executed after a second
})();
Asynchronous pause
Homepage Repository npm TypeScript Download
npm install async-pause@1.1.0