Wait for a specified amount of time.
Usage:
import { waitTime } from "mazey";waitTime(1000).then((time) => { console.log("waitTime:", time);}); Copy
import { waitTime } from "mazey";waitTime(1000).then((time) => { console.log("waitTime:", time);});
Output:
waitTime: 1000 Copy
waitTime: 1000
The amount of time to wait, in milliseconds.
A Promise that resolves after the specified time has elapsed.
Wait for a specified amount of time.
Usage:
Output: