Skip to main content

Module release

Module release 

Source
Expand description

The release of a node’s stores (#1085): the witnesses a close awaits.

A native store is released when its last holder drops it, which unlocks its directory (#1039; the release law of rings_core::storage::file). A browser node’s storage namespace is released when its last store drops, which resolves its exclusive Web Lock (rings-node/<name>, #1055) and settles once the browser’s LockManager has released it. A node keeps the release witnesses of the stores it was built over, taken at open before each store is boxed behind its trait, and StoresReleased resolves once each of them has.

  StoresReleased(w₁ … wₙ) resolves  ⟺  ∀ i. wᵢ resolved   (n = 0 resolves at once)

Structs§

StoresReleased
The release witnesses of a node’s stores: it resolves once every store it names is released.