-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race condition in memoiseWithCycleDetection
Keep track of the threadids that are waiting for the result of a query and make sure that they are removed from the deps map _before_ the result of the query is written to the result MVar. As it was before the threadids were sometimes removed too late from the deps map, which could mean false positive `Cyclic` exceptions.
- Loading branch information
Showing
1 changed file
with
45 additions
and
32 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