Pay attention on errors in cancel functions #18
bunglegrind
started this conversation in
General
Replies: 2 comments 3 replies
-
Cancel is a best effort mechanism. There is no guarantee that it will be successful. Given that, there should be no expectation that the reason for the cancel's failure should be delivered. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Because of
parseq/parseq.js
Line 113 in 04aa2ee
exceptions in cancel functions are catched and ignored.
Is this a problem? Well, it depends. If you write a test and put an assertion on the cancel function, and the assertion library you're using throws when failing (such as https://nodejs.org/docs/latest-v20.x/api/assert.html ), it definitely is 😛
Just pay attention 😉
Beta Was this translation helpful? Give feedback.
All reactions