@trendyminds/delay

1.1.0 • Public • Published

Delay

A promise-based setTimeout so you can await for a duration before proceeding

Install

npm i @trendyminds/delay

Usage

import delay from "@trendyminds/delay";

(async () => {
  console.log("Hello");

  // wait 2 seconds until the next command
  await delay(2000);

  console.log("world");
})();

Readme

Keywords

none

Package Sidebar

Install

npm i @trendyminds/delay

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

2.25 kB

Total Files

4

Last publish

Collaborators

  • aaronbushnell
  • jonimmel