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
Right now, using receive and receive_with_options panics on any error (for example, loss of network or socket unexpectedly closed), preventing graceful handling of them. Furthermore, it is impossible to use catch_unwind as the Subscription type is not unwind-safe.
It would make more sense to return a Result and let the library user deal with the handling (or revert to old behavior via .unwrap()/.except()).
The text was updated successfully, but these errors were encountered:
Right now, using
receive
andreceive_with_options
panics on any error (for example, loss of network or socket unexpectedly closed), preventing graceful handling of them. Furthermore, it is impossible to usecatch_unwind
as theSubscription
type is not unwind-safe.It would make more sense to return a
Result
and let the library user deal with the handling (or revert to old behavior via.unwrap()
/.except()
).The text was updated successfully, but these errors were encountered: