mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
chore: merge branch 'ui/glass-header'
This commit is contained in:
@@ -1 +1,11 @@
|
||||
/**
|
||||
* Schedule a task at the end of the Event Loop
|
||||
* @param cb Callback
|
||||
*/
|
||||
export const defer = (cb: () => void) => setTimeout(cb, 0);
|
||||
|
||||
/**
|
||||
* Schedule a task at the end of the second Event Loop
|
||||
* @param cb Callback
|
||||
*/
|
||||
export const chainedDefer = (cb: () => void) => defer(() => defer(cb));
|
||||
|
||||
Reference in New Issue
Block a user