1.0.5 • Published 12 months ago

mrt-delay v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

mrt-delay

The "mrt-delay" package allows you to add a runtime delay in your code execution. This can be useful when you want to introduce a pause or delay between certain parts of your code. Installation

To install the "mrt-delay" package, run the following command:

npm install mrt-delay

Usage

Require the package in your code:



const mrt_delay = require('mrt-delay').mrt_delay;

Use it inside your async function:

async function foo() {
 /*
   {
     do some stuff
   }
 */

 let response = await mrt_delay(2000);

 /*
   {
     do some stuff after a delay of 2 seconds
   }
 */

 console.log(response);

}

 foo();

In the above example, the mrt_delay function is called with the desired delay duration in milliseconds. The code execution will pause for the specified duration before proceeding to the next line.

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.0

12 months ago