We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a198721 commit 7e47256Copy full SHA for 7e47256
std/src/sync/mod.rs
@@ -136,7 +136,10 @@
136
//! - [`Once`]: Used for a thread-safe, one-time global initialization routine
137
//!
138
//! - [`OnceLock`]: Used for thread-safe, one-time initialization of a
139
-//! global variable.
+//! variable, with potentially different initializers based on the caller.
140
+//!
141
+//! - [`LazyLock`]: Used for thread-safe, one-time initialization of a
142
+//! variable, using one nullary initializer function provided at creation.
143
144
//! - [`RwLock`]: Provides a mutual exclusion mechanism which allows
145
//! multiple readers at the same time, while allowing only one
0 commit comments