-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support and_try_compute_if_nobody_else
It will only evaluate one closure for a certain entry, and other closures will be canceled, returning `CompResult::Unchanged`. Add `ValueInitializer::post_init_for_try_compute_with_if_nobody_else`. Add `Cache::try_compute_if_nobody_else_with_hash_and_fun`. Add `RefKeyEntrySelector::and_try_compute_if_nobody_else`.
- Loading branch information
1 parent
84acc73
commit 29b00c2
Showing
3 changed files
with
180 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters