embassy-sync

Crates

git

Versions

default

Flavors

Module embassy_sync::lazy_lock

source ·
Expand description

Synchronization primitive for initializing a value once, allowing others to get a reference to the value.

Structs§

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