Module sync

Module sync 

Source
Expand description

Implements the OnceLock and LazyLock types.

Structs§

LazyLock
A lazily initialized value using a particular initialization function.
OnceLock
A thread-safe value which is initialized at most once.

Constants§

LEGACY_POISON_BEHAVIOR
If this is true, then OnceLock::get_or_init may be poisoned on panic.