-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`PanicGuard` used to own the memo so that, in the case of panic, we could reinstall the old value -- but there's no reason for us to do that. It's just as good to clear the slot in that case and recompute it later. Also, it makes the code nicer to remove it, since it allows us to have more precision about where we know the memo is not null. My motivation though is to work towards "partial cycle recovery". We need a clean and easy way to cancel the ongoing execution and reset the slot to "not computed" (turns out we used that in `maybe_changed_since` too!).
- Loading branch information
1 parent
961599a
commit b2bbd0e
Showing
1 changed file
with
40 additions
and
33 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