Files
reverse-engineering-anything/scripts/lib/verifier-cleanup.d.mts
T
morluto add15d65b3 refactor(verify): give verifier fixture roots one lease on src/process (#10988)
* refactor(verify): give verifier fixture roots one lease on src/process

* fix(verify): keep fixture registration closed, carry the lease on the caught failure, share cleanups once
2026-11-15 18:02:28 +08:00

11 lines
399 B
TypeScript

/** Attempt every independent cleanup and preserve each failure. */
export function closeVerifierResources(
tasks: readonly (() => void | Promise<void>)[],
): Promise<void>;
/** Finish one operation and its cleanup without losing either failure. */
export function withVerifierCleanup<T>(
operation: () => T | Promise<T>,
cleanupTasks: readonly (() => void | Promise<void>)[],
): Promise<T>;