From adefcb2989483fa8890ca9108ef0701c30ed5613 Mon Sep 17 00:00:00 2001 From: guerler Date: Tue, 21 Nov 2023 09:47:10 +0300 Subject: [PATCH] Remove custom timeout utility --- client/src/utils/timeout.ts | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 client/src/utils/timeout.ts diff --git a/client/src/utils/timeout.ts b/client/src/utils/timeout.ts deleted file mode 100644 index 29845b06b9e..00000000000 --- a/client/src/utils/timeout.ts +++ /dev/null @@ -1,7 +0,0 @@ -let timeoutHandler: ReturnType | null = null; -export const timeout = (callback: () => void, delay = 5000) => { - if (timeoutHandler) { - clearTimeout(timeoutHandler); - } - timeoutHandler = setTimeout(callback, delay); -};