Embassy
embassy-sync

Crates

git

Versions

default

Flavors

Module embassy_sync::once_lock

source ·
Expand description

Syncronization primitive for initializing a value once, allowing others to await a reference to the value.

Structs§

  • The OnceLock is a synchronization primitive that allows for initializing a value once, and allowing others to .await a reference to the value. This is useful for lazy initialization of a static value.