-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document concurrent memoization of zero-arg methods (#230)
Document, via both README and specs, that when two threads concurrently call a zero-arg method which is in the unmemoized state, they can return two different results. For example, this could occur if we are memoizing: * database query result * filesystem read * current time * a random number This PR introduces a test which probabilistically reproduces the issue, as well as documentation that this is the expected behavior. Disables a test on TruffleRuby in CI, as it takes multiple seconds to observe the different return values there. Closes #184
- Loading branch information
Showing
2 changed files
with
70 additions
and
11 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