awaiter.js
v1.0.5
Published
This package is use stop the asychronous node.js code for as long as you want
Maintainers
Readme
Awaiter.js
Awaiter
The Awaiter function pauses code execution for a specified number of milliseconds.
/*
بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ ﷺ
InshaAllah, By his marcy I will Gain Success
*/
import Awaiter from "Awaiter.js";
await Awaiter(1000)
//It will stop the node.js code for 1000 mili seconds or 1 seconds
await Awaiter(3000)
//It will stop the node.js code for 3000 mili seconds or 3 seconds
await Awaiter(5000)
//It will stop the node.js code for 5000 mili seconds or 5 seconds