( capability: StorageRootCapability<'interactive'>, )
| 596 | } |
| 597 | |
| 598 | export async function tryAcquireInteractiveRootReader( |
| 599 | capability: StorageRootCapability<'interactive'>, |
| 600 | ): Promise<InteractiveRootReader | undefined> { |
| 601 | return withAuthorityFailure( |
| 602 | 'lock_failed', |
| 603 | 'Unable to acquire the interactive storage root reader lock', |
| 604 | () => acquireStateRootLock(capability, 'read'), |
| 605 | ); |
| 606 | } |
| 607 | |
| 608 | export async function assertStorageRootLease< |
| 609 | K extends StorageRootKind, |