mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 01:26:37 +08:00
refactor(infra): remove setimmediate (#7975)
This commit is contained in:
@@ -122,9 +122,10 @@ export class ComponentCachePool {
|
||||
try {
|
||||
i[Symbol.dispose]();
|
||||
} catch (err) {
|
||||
setImmediate(() => {
|
||||
// make a uncaught exception
|
||||
setTimeout(() => {
|
||||
throw err;
|
||||
});
|
||||
}, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user