moomooio-client
Version:
MooMooIO-Client is a client-side wrapper API designed for the game MooMoo.io. This package aims to provide a simple yet powerful API for creating clones, mods, or plugins for MooMoo.io.
9 lines (8 loc) • 400 B
text/typescript
/**
* @description Pauses the program execution for the specified number of seconds.
* @param {number} time - The duration, in seconds, for which the program should pause.
* @returns {Promise<void>} A promise that resolves after the specified duration.
*/
export default function sleep(time: number): Promise<void> {
return new Promise((resolve) => setTimeout(resolve, time * 1000));
}