We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f98d4f commit eaa5ee1Copy full SHA for eaa5ee1
1 file changed
packages/commandkit/src/context/async-context.ts
@@ -43,11 +43,13 @@ export function makeContextAwareFunction<
43
} finally {
44
if (typeof finalizer === 'function') {
45
// execute the finalizer function
46
- try {
47
- await finalizer(...args);
48
- } catch {
49
- // no-op
50
- }
+ setImmediate(async () => {
+ try {
+ await finalizer(...args);
+ } catch {
+ // no-op
51
+ }
52
+ });
53
}
54
55
});
0 commit comments