-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
CancelToken problem in Flutter version 3.13.2 #1953
Comments
Never had this problem with flutter 3.10, but keep getting uncaught exception in 3.13 |
Please see the comment and answers: #1869 (comment) |
This may have been fixed in Flutter master. Reference: dart-lang/sdk#47985 |
Yea I think we can close this issue, please follow the Dart SDK issue for updates to Dart/Flutter. |
still exists in Flutter Channel stable, 3.13.9. the bug is annoying |
Please follow the mentioned Dart SDK issue, nothing we can do here. |
We experience the same in the Android Studio IDE and we suspect this is what breaks the cancel token for Present in the function: @internal
static Future<T> listenCancelForAsyncTask<T>(
CancelToken? cancelToken,
Future<T> future,
) {
return Future.any([
if (cancelToken != null) cancelToken.whenCancel.then((e) {
throw e;
}),
future,
]);
} |
I think this issue shall be reopened. The related Dart issue that was mentioned in this ticket: dart-lang/sdk#47985 or #1869 (comment) applies to debugger problems, however cancellation doesn't seem to work fine regardless of IDE / debugger used. It doesn't even work in the release version of the app. In other words cancellation doesn't work for Dio as reported in this issue: #2025 even if app is built using release mode. This issue was closed as "Out of support" without valid references to external issues. |
There is nothing we can do with this ticket because it's out of support with its given information. The most relevant references are already referenced so we are more likely to work on new, more detailed, and more precised issue if possible. |
Package
dio
Version
5.3.2
Output of
flutter doctor -v
Dart Version
3.1.0
Steps to Reproduce
Expected Result
Nothing happen
Actual Result
Exception
The text was updated successfully, but these errors were encountered: