Skip to content
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

dart:async's onError is deprecated but still in the example #49679

Closed
mit-mit opened this issue Aug 16, 2022 · 0 comments
Closed

dart:async's onError is deprecated but still in the example #49679

mit-mit opened this issue Aug 16, 2022 · 0 comments

Comments

@mit-mit
Copy link
Member

mit-mit commented Aug 16, 2022

The onError argument to runZoned is deprecated. The replacement is to call runZonedGuarded instead.

runZonedGuarded has a nice example of how to use it, so that's great

However, the code example and docs for runZoned still talk about and exemplify using onError. This should be removed, and runZoned should instead mention and cross-link to runZonedGuarded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants