-
Notifications
You must be signed in to change notification settings - Fork 50
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
CancelableOperation value is not propagating errors, so they cannot be catched and app is crashing #246
Comments
UPDATE IIn order to illustrate the issue with a test:
|
UPDATE IIAlso not working using |
I'm closing due to this issue is related to VSCode and not the plugin: dart-lang/sdk#47692 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This problem began with Dio library on this issue.
Basically the thing is that be have a CancelableOperation being constructed from a Future value.
A) If we manage this future possible errors before constructing the CancelableOperation , it works fine: errors can be catched.
B) Then the trouble, if we manage the future possible errors after CancelableOperation being constructed, via its value property, errors are not catched and app is crashing.
Is it the normal behaviour?
It would not be preferable to propagate also the future's error?
The text was updated successfully, but these errors were encountered: