You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is part of a larger work towards better scope management.
This change makes Sentry.withScope and Hub.withScope easier to use with
existing functions that return a non-void type.
The motivation is that withScope could be used to wrap existing
functions and run them in a new scope without requiring a closure or
mutating state outside of the wrapped function (since it had to be
void).
While this does change the withScope signature, we're considering it
relatively low risk of breaking downstream code as we're making it more
general.
0 commit comments