embassy_sync

Module once_lock

Source
Expand description

Synchronization 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.