std::sync::OnceState: Confusing documentation for poisoned method #43472
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
The documentation for
std::sync::OnceState::poisoned
reads:This is confusing because it implies that calls to
call_once_force
can execute multiple times, but of course the whole point of aOnce
is that calls only execute once. Evencall_once_force
only executes so long as theOnce
is poisoned - as soon as it is in theCOMPLETE
state,call_once_force
calls become no-ops.A better wording might be:
The text was updated successfully, but these errors were encountered: