We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 93efd53 + f8e9d2f commit 0337964Copy full SHA for 0337964
src/libstd/sync/once.rs
@@ -330,6 +330,7 @@ impl Once {
330
/// assert_eq!(INIT.is_completed(), false);
331
/// ```
332
#[unstable(feature = "once_is_completed", issue = "42")]
333
+ #[inline]
334
pub fn is_completed(&self) -> bool {
335
// An `Acquire` load is enough because that makes all the initialization
336
// operations visible to us, and, this being a fast path, weaker
0 commit comments