async-wait.js
v1.1.0
Published
An NPM module to easily delay your code.
Downloads
2
Readme
async-wait.js
An NPM module to easily delay your code.
Installation
# Using NPM
npm install async-wait.js
# Using Yarn
yarn add async-wait.js
Requiring Module
// Using Node.js
const { config, wait } = require("async-wait.js");
// Using React.js
import { config, wait } from "async-wait.js";
Usage
const { config, wait } = require("async-wait.js"); // Import the module
(async() => {
config(); // Configure the module
console.log("Hello"); // Print "Hello" to the console
wait(1000); // Wait 1000ms (1s)
console.log("world"); // Print "world" to the console
})();
Contact
Contact LilJuiceBox491 on Discord at LilJuiceBox491#3256