chore(8.0): final pre-RC1 sweep — API consistency, named errors, orphans, zero-cast codebase

This commit is contained in:
David Snelling 2026-06-11 14:51:00 -07:00
parent 970e08c466
commit 1f7e365a4e
237 changed files with 1951 additions and 49413 deletions

View file

@ -278,6 +278,8 @@ export function getGlobalMutex(): MutexInterface {
*/
export async function cleanupMutexes(): Promise<void> {
if (globalMutex && 'cleanup' in globalMutex) {
await (globalMutex as any).cleanup()
// Only FileMutex (defined above) carries a cleanup() method; the 'in'
// check above guarantees we hold that implementation.
await (globalMutex as FileMutex).cleanup()
}
}