Skip to content

Fix bug with Streaming#thunk.#683

Merged
adelbertc merged 3 commits into
masterfrom
bug/fix-streaming-thunk
Nov 20, 2015
Merged

Fix bug with Streaming#thunk.#683
adelbertc merged 3 commits into
masterfrom
bug/fix-streaming-thunk

Conversation

@non
Copy link
Copy Markdown
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.
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
Contributor

ceedubs commented Nov 19, 2015

👍

1 similar comment
@adelbertc
Copy link
Copy Markdown
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