-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Improve correctness of Future.hook #238
Conversation
Codecov Report
@@ Coverage Diff @@
## master #238 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 48 48
Lines 1187 1196 +9
=====================================
+ Hits 1187 1196 +9
Continue to review full report at Codecov.
|
56bb20f
to
f807a3f
Compare
In the case where the consumption Future settles, the disposal is forked and | ||
awaited. If the disposal Future rejects or encounters an exception, it will | ||
replace the state of the consumption Future. Otherwise the rejection reason or | ||
resolution value of the consumption Future will determine the final outcome. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is “consumption” being used as an adjective here? This doesn't sound right to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to quick way to refer to "the Future returned by the consume
function".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I can't do the review in close future :(
Alright, no worries! |
Breaking changes - #224 Exceptions are now caught and rethrown in `fork`. - #230 Many of the TypeScript type definitions that used `never` now use a generic instead. - #238 When unsubscribing from a Future created by `hook`, the cancellation signal is no longer sent to the disposal Future. - #266 Exported TypeScript interfaces have been renamed to avoid naming conflicts with exported values. New features - #250 Included interoperability with Sanctuary Show - #261 Added a new function, `forkCatch`, which allows for exception recovery.
This PR introduces two significant changes to how Hook works:
I've tried to explain these semantics in the README.
@safareli I've asked you for a review because this change affects semantics and is partly inspired by PureScript Aff.
Ping @syaiful6 because you were the person to bring this to my attention.