Skip to content

Commit

Permalink
sdfds
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoobes committed Feb 4, 2025
1 parent ef3d3d7 commit 926d531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function removeCleanupListener(listener: CleanupListener): boolean {

/** Executes all cleanup listeners and then exits the process. Call this instead of `process.exit` to ensure all listeners are fully executed. */
export async function exitAfterCleanup(code = 0): Promise<never> {
await executeCleanupListeners(code);
await executeCleanupListeners();
process.exit(code);
}

Expand Down

0 comments on commit 926d531

Please sign in to comment.