Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with Streaming#thunk. #683

Merged
merged 3 commits into from
Nov 20, 2015
Merged

Fix bug with Streaming#thunk. #683

merged 3 commits into from
Nov 20, 2015

Conversation

non
Copy link
Contributor

@non non commented Nov 19, 2015

The .thunk method is not supposed to memoize the results,
allowing the caller to provide an impure function which
returns different values on different calls.

However, .thunk's definition used .knot with memoization,
which completely defeated the point. This commit removes
the memoization allowing this method to function correctly.

Fixes #677.

The .thunk method is not supposed to memoize the results,
allowing the caller to provide an impure function which
returns different values on different calls.

However, .thunk's definition used .knot with memoization,
which completely defeated the point. This commit removes
the memoization allowing this method to function correctly.

Fixes #677.
@@ -812,7 +812,7 @@ object Streaming extends StreamingInstances {
* traversals produce the same results.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this doc needs to be updated to no longer say that the result is memoized.

@codecov-io
Copy link

Current coverage is 83.08%

Merging #683 into master will increase coverage by +0.14% as of e22c15d

@@            master    #683   diff @@
======================================
  Files          162     162       
  Stmts         2217    2217       
  Branches        74      74       
  Methods          0       0       
======================================
+ Hit           1839    1842     +3
  Partial          0       0       
+ Missed         378     375     -3

Review entire Coverage Diff as of e22c15d

Powered by Codecov. Updated on successful CI builds.

@ceedubs
Copy link
Contributor

ceedubs commented Nov 19, 2015

👍

1 similar comment
@adelbertc
Copy link
Contributor

👍

adelbertc added a commit that referenced this pull request Nov 20, 2015
@adelbertc adelbertc merged commit b07df91 into master Nov 20, 2015
@non non deleted the bug/fix-streaming-thunk branch April 28, 2016 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants