loadNodes

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

Load all stored nodes.

Suspends while the backend reads from disk; cancellable. If the caller's coroutine is cancelled mid-read the implementation must rethrow kotlin.coroutines.cancellation.CancellationException.

Return

a map of NodeId → NodeInfo, or an empty map if no nodes have been stored