@hbarve1/wait

2.0.0 • Public • Published

Wait

This function paues the flow of code for miliseconds given in parameter.

  const wait = require('@hbarve1/wait');

  async function doSomething() {
    // your important stuff

    // will wait 1000 milli-seconds after moving forwarn in code, 
    // default value is 0
    await wait(1000); 

    // your other important stuff
  }

Readme

Keywords

none

Package Sidebar

Install

npm i @hbarve1/wait

Weekly Downloads

0

Version

2.0.0

License

ISC

Unpacked Size

989 B

Total Files

3

Last publish

Collaborators

  • hbarve1