Constant ONCE_INIT

Deprecated since 1.38.0: the `Once::new()` function is now preferred
pub const ONCE_INIT: Once;

Initialization value for static Once values.

Examples

use std::sync::{Once, ONCE_INIT};

static START: Once = ONCE_INIT;