-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix eager side effects in Memo.exec (#4283)
Calling [Memo.exec] and then not running the resulting [Fiber.t] brings the memoization framework into an inconsistent internal state. This PR makes [Memo.exec] less eager to perform side effects, delaying them until the returned [Fiber.t] is actually run. Signed-off-by: Andrey Mokhov <[email protected]>
- Loading branch information
1 parent
f2e0079
commit f839fc1
Showing
2 changed files
with
15 additions
and
7 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