You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since unlike Mutex, you can't specify which underlying Once to use with std::sync::OnceLock and std::cell::OnceCell, I would either have to roll my own, which seems wasteful and will not update when the std versions get changed, or manage the value and the Once separately like in the Once example, which is error-prone and puts the burden of upholding invariants on the developer
The text was updated successfully, but these errors were encountered:
I could try making a PR for it, but it will probably be almost entirely just a copy paste of the std implementation and just changing the import from std::sync::Once to parking_lot::Once, would that be any good?
Since unlike
Mutex
, you can't specify which underlyingOnce
to use withstd::sync::OnceLock
andstd::cell::OnceCell
, I would either have to roll my own, which seems wasteful and will not update when the std versions get changed, or manage the value and theOnce
separately like in theOnce
example, which is error-prone and puts the burden of upholding invariants on the developerThe text was updated successfully, but these errors were encountered: