def reader_status

bendvy-ecs-core@0.1.0.4 · event_runtime.bend:296

import bendvy-ecs-core@0.1.0.4/event_runtime.bend as EventRuntime
import Base

296def reader_status(~E: Data,position: Position,+batches: List<&2,Batch<E>>,+dropped: Nat) -> ReaderStatus:
297  match position:
298    case Position{+id,+cursor,+registered}: ReaderStatus{id,cursor,registered,count(~E,since(~E,batches,cursor)),Nat.is_lt(Nat.max(cursor,registered),dropped)}

Uses (9)

Used by (1)