Skip to main content

Module lazy_lock

Module lazy_lock 

Source
Expand description

A no_std-compatible replacement for std::sync::LazyLock.

When the std feature is enabled, this delegates directly to std::sync::LazyLock. In no_std mode, this delegates to [spin::Lazy] which uses a spin-based Once internally.

Structsยง

LazyLock
A thread-safe, lazily-initialized value.