♻️ 🧮 cleanupRegistry.ts
This commit is contained in:
@@ -23,3 +23,4 @@ export function registerCleanup(cleanupFn: () => Promise<void>): () => void {
|
||||
export async function runCleanupFunctions(): Promise<void> {
|
||||
await Promise.all(Array.from(cleanupFunctions).map(fn => fn()))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user