scan

suspend fun <K : Any> scan(items: Selector, key: (ElementSnapshot) -> K, maxScrolls: Int, maxItems: Int, timeout: Duration, direction: Direction = Direction.DOWN, distancePercent: Int = 60, noProgressLimit: Int = 2): ScanResult<K>(source)

Collect descendant observations from the current position, never claiming completeness. Explicit stable keys merge overlap; same-read collisions fail. Bad keys across reads can merge distinct rows. Does not rewind or wait for loading. Budgets are mandatory. Failures retain their type/code and expose scanPartial; cancellation stays cancellation.