mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
Remove custom timeout utility
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
let timeoutHandler: ReturnType<typeof setTimeout> | null = null;
|
||||
export const timeout = (callback: () => void, delay = 5000) => {
|
||||
if (timeoutHandler) {
|
||||
clearTimeout(timeoutHandler);
|
||||
}
|
||||
timeoutHandler = setTimeout(callback, delay);
|
||||
};
|
||||
Reference in New Issue
Block a user