mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
tguichat and tgui4.1?
This commit is contained in:
@@ -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))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user