embassy_sync

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