ComputedMap<K, V>.fromSnapshotStream constructor

ComputedMap<K, V>.fromSnapshotStream(
  1. Computed<IMap<K, V>> stream
)

Constructs a ComputedMap from the given snapshot stream.

The returned map internally computes a change stream by comparing each new snapshot to the previous one.

Implementation

factory ComputedMap.fromSnapshotStream(Computed<IMap<K, V>> stream) =>
    SnapshotStreamComputedMap(stream);