chore(8.0): final pre-RC1 sweep — API consistency, named errors, orphans, zero-cast codebase
This commit is contained in:
parent
970e08c466
commit
1f7e365a4e
237 changed files with 1951 additions and 49413 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
Reference in a new issue