nodeSnapshot

suspend fun nodeSnapshot(): Map<NodeId, NodeInfo>(source)

Pull a snapshot of all known nodes on demand.

Returns a copy of the engine's current node map. Cheaper than folding nodes yourself when you only need a one-shot view.

Suspend semantics: suspends only long enough to round-trip a request through the engine actor (no network or storage I/O). Cooperatively cancellable — if the caller's coroutine is cancelled before the actor responds, kotlin.coroutines.cancellation.CancellationException is rethrown and no observable state changes.

Return

a map of NodeIdNodeInfo

Throws

if not currently connected