Interface: ScopeLockReaderBatchState
Defined in: runtime/locks/scope-lock-entry-state.ts:22
Reader-batch turn state coordinated on a handle's PQueue (concurrency: 1).
Groups concurrent shared-read callers that arrive while no exclusive writer is queued after the batch, holding a single PQueue concurrency slot until all readers in the batch release.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
activeCount | public | number | Count of currently active (granted and unreleased) readers belonging to this batch. | runtime/locks/scope-lock-entry-state.ts:26 |
finishTurn | public | (() => void) | undefined | Resolver callback that completes the batch's PQueue turn once activeCount drops to zero. | runtime/locks/scope-lock-entry-state.ts:32 |
started | public | boolean | True once the PQueue turn for this reader batch has begun executing. | runtime/locks/scope-lock-entry-state.ts:24 |
waitController | readonly | AbortController | Controller used to cancel the queued PQueue turn if all waiters abort or coalesce before start. | runtime/locks/scope-lock-entry-state.ts:28 |
waiters | readonly | Set<ScopeLockQueueWaiter> | Set of pending reader waiters awaiting the start of this batch turn in PQueue. | runtime/locks/scope-lock-entry-state.ts:30 |