(opts?: SchedulerLockOptions)
| 91 | } |
| 92 | |
| 93 | function 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. |
no test coverage detected