We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ScopeCallback
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
The callback typedef ScopeCallback = void Function(Scope);
typedef ScopeCallback = void Function(Scope);
Should be:
typedef ScopeCallback = FutureOr<void> Function(Scope);
Otherwise, there's a context scope because Scope has async methods but you can't await for configureScope.
configureScope
void configureScope(ScopeCallback callback)
FutureOr<void> configureScope(ScopeCallback callback)
Executions of the ScopeCallback? withScope should also be awaited otherwise the same problem happens.
ScopeCallback? withScope
Add changes to https://docs.sentry.io/platforms/dart/migration/#migrating-from-sentry-65x-to-sentry-66x
The text was updated successfully, but these errors were encountered:
denrase
Successfully merging a pull request may close this issue.
The callback
typedef ScopeCallback = void Function(Scope);
Should be:
typedef ScopeCallback = FutureOr<void> Function(Scope);
Otherwise, there's a context scope because Scope has async methods but you can't await for
configureScope
.void configureScope(ScopeCallback callback)
Should be:
FutureOr<void> configureScope(ScopeCallback callback)
Executions of the
ScopeCallback? withScope
should also be awaited otherwise the same problem happens.Add changes to https://docs.sentry.io/platforms/dart/migration/#migrating-from-sentry-65x-to-sentry-66x
The text was updated successfully, but these errors were encountered: