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