page

suspend fun page(type: AggregateType, rewrites: suspend (suspend (AggregateRef, List<EventStreamRecord>, CachedState) -> Unit) -> Unit)

Runs rewrites, a page of the access walk over type's aggregates, with the rebuild of each one's snapshot as rebuild does from its whole log, already replayed: one page (RebuildPage), so two reads of each target's table for the page, not for each aggregate. A type without snapshots rewrites none.