mirror of
https://github.com/pezkuwichain/pezkuwi-extension.git
synced 2026-07-15 00:45:41 +00:00
11 lines
292 B
TypeScript
11 lines
292 B
TypeScript
// Copyright 2019-2025 @pezkuwi/extension-ui authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
function setImmediate (fn: () => void): void {
|
|
setTimeout(fn, 0);
|
|
}
|
|
|
|
export function flushAllPromises (): Promise<void> {
|
|
return new Promise((resolve) => setImmediate(resolve));
|
|
}
|