refactor(infra): remove setimmediate (#7975)

This commit is contained in:
EYHN
2024-08-26 11:57:24 +00:00
parent 611925fa10
commit 9ea4aaaf37
6 changed files with 14 additions and 12 deletions
@@ -122,9 +122,10 @@ export class ComponentCachePool {
try {
i[Symbol.dispose]();
} catch (err) {
setImmediate(() => {
// make a uncaught exception
setTimeout(() => {
throw err;
});
}, 0);
}
}
}