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
The documentation for AtomSetOnce stops mid-sentence with Meaning that AtomSetOnce is not usable as a... . I would love to know how this sentence ends. The suspense is killing me! :D Seriously, though, what is AtomSetOnce not usable as? That would be pretty useful information to have.
The text was updated successfully, but these errors were encountered:
This will do a CAS setting the value only if it is NULL this will return OK(()) if the value was written, otherwise a Err(P) will be returned, where the value was the same value that you passed into this function.
In reality, the function returns an Option<P>, just like Atom::set_if_none. I could submit a PR with a fix to the library to actually mimic what is documented.
The documentation for
AtomSetOnce
stops mid-sentence withMeaning that AtomSetOnce is not usable as a
... . I would love to know how this sentence ends. The suspense is killing me! :D Seriously, though, what is AtomSetOnce not usable as? That would be pretty useful information to have.The text was updated successfully, but these errors were encountered: