Snapshot
sealed class Snapshot
Content copied to clipboard
A snapshot of the values return by mutable states and other state objects. All state object will have the same value in the snapshot as they had when the snapshot was created unless they are explicitly changed in the snapshot.
To enter a snapshot call enter. The snapshot is the current snapshot as returned by currentSnapshot until the control returns from the lambda (or until a nested enter is called). All state objects will return the values associated with this snapshot, locally in the thread, until enter returns. All other threads are unaffected.
Snapshots can be nested by calling takeNestedSnapshot.
See also
Types
Functions
hasPendingChanges
Link copied to clipboard
takeNestedSnapshot
Link copied to clipboard
abstract fun takeNestedSnapshot(readObserver: SnapshotReadObserver? = null): Snapshot
Content copied to clipboard
Properties
Inheritors
MutableSnapshot
Link copied to clipboard