MCPcopy Index your code
hub / github.com/codeaashu/claude-code / registerLockCleanup

Function registerLockCleanup

src/utils/cronTasksLock.ts:93–98  ·  view source on GitHub ↗
(opts?: SchedulerLockOptions)

Source from the content-addressed store, hash-verified

91}
92
93function registerLockCleanup(opts?: SchedulerLockOptions): void {
94 unregisterCleanup?.()
95 unregisterCleanup = registerCleanup(async () => {
96 await releaseSchedulerLock(opts)
97 })
98}
99
100/**
101 * Try to acquire the scheduler lock for the current session.

Callers 1

tryAcquireSchedulerLockFunction · 0.70

Calls 2

registerCleanupFunction · 0.85
releaseSchedulerLockFunction · 0.85

Tested by

no test coverage detected