-
Notifications
You must be signed in to change notification settings - Fork 339
-
Notifications
You must be signed in to change notification settings - Fork 339
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
Unbable to catch panics in a spawned task #1052
Comments
smol-rs/async-task#37 (not yet published) would probably resolve this issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using the
spawn_and_log_error
function from thea-chat
example. Unfortunately, this function is not able to capture panics in the spawned tasked. Theasync-std
book mentions that catching panics in the spawned task and reacting with custom behavior is possible. If usingspawn_and_log_error
is the wrong approach to achieve that, could someone point me in the right direction?The text was updated successfully, but these errors were encountered: