remove sleep function

This commit is contained in:
Viet Huynh
2023-11-02 02:58:24 +07:00
parent 4f97b35b74
commit cdcce5a939
2 changed files with 0 additions and 10 deletions
-7
View File
@@ -7,13 +7,6 @@ if (!globalThis.fetch) {
globalThis.fetch = (await import("node-fetch")).default;
}
/**
* Sleeps for a specified amount of time.
* @param {number} [ms=350] The amount of time in ms.
*/
export const sleep = (ms = 350) =>
new Promise((resolve) => setTimeout(resolve, ms));
/**
* Checks if the value is a valid domain.
* @param {string} value The value to be checked.