Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify that SyncOnceCell::set blocks. #82645

Merged
merged 1 commit into from
Mar 1, 2021
Merged

Commits on Feb 28, 2021

  1. Clarify that SyncOnceCell::set blocks.

    Reading the discussion of this feature, I gained the mistaken impression that neither `set` nor `get` blocked, and thus calling `get` immediately after `set` was not guaranteed to succeed. It turns out that `set` *does* block, guaranteeing that the cell contains a value once `set` returns. This change updates the documentation to state that explicitly.
    rkjnsn authored Feb 28, 2021
    Configuration menu
    Copy the full SHA
    2616960 View commit details
    Browse the repository at this point in the history