tguichat and tgui4.1?

This commit is contained in:
Letter N
2020-08-15 16:08:10 +08:00
parent 90234ca065
commit 15e659fc9c
154 changed files with 9353 additions and 1091 deletions

View File

@@ -27,3 +27,12 @@ export const debounce = (fn, time, immediate = false) => {
}
};
};
/**
* Suspends an asynchronous function for N milliseconds.
*
* @param {number} time
*/
export const sleep = time => (
new Promise(resolve => setTimeout(resolve, time))
);