SnapshotFlowManager


Orchestrates the observation of Snapshot state for snapshotFlow invocations.

Once a SnapshotFlowManager is no longer needed, its dispose method should be called.

It is not safe to share a SnapshotFlowManager instance across snapshotFlows running on different threads, but it is not a problem for apply observers to run in parallel with SnapshotFlowManager logic.

See also
snapshotFlow

Summary

Public constructors

Cmn

Public functions

Unit

Disposes of this manager.

Cmn

Public constructors

SnapshotFlowManager

SnapshotFlowManager()

Public functions

dispose

fun dispose(): Unit

Disposes of this manager. Disposing of a manager disconnects it from the Snapshot system, rendering it incapable of handling any subscriptions.

If this method is called after this manager has been disposed of, an IllegalStateException will be thrown.