struct Syn::Core::Once
- Syn::Core::Once
- Struct
- Value
- Object
Overview
Similar to AtomicLock
but limited to a single usage: prevent a block of
code to be invoked more than once, for example executing an initializer at
most once.
Relies on :sequentially_consistent
memory ordering.