async-pause

Asynchronous pause


Keywords
async, await, promise, pause, sleep, setTimeout
License
MIT
Install
npm install async-pause@1.1.0

Documentation

async-pause

Asynchronous pause

GitHub CI Codecov NPM

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
})();