This package has been deprecated

Author message:

This package is deprecated and no longer maintained. Please use `await new Promise((resolve) => setTimeout(resolve, duration))` instead

async-pause
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i async-pause

Weekly Downloads

14

Version

1.0.0

License

MIT

Unpacked Size

4.45 kB

Total Files

7

Last publish

Collaborators

  • vlad-yakovlev