awaitSnapshot

abstract suspend fun awaitSnapshot(timeout: Duration = 1.seconds): S

Returns a snapshot, waiting if necessary for changes to occur since the previous snapshot.

Throws

TimeoutCancellationException

if no new snapshot is produced before timeout.