Skip to content

Propagate panics in tasks #78

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

Merged
merged 2 commits into from
Nov 21, 2023
Merged

Propagate panics in tasks #78

merged 2 commits into from
Nov 21, 2023

Conversation

notgull
Copy link
Member

@notgull notgull commented Nov 17, 2023

After smol-rs/async-task#37 I meant to add this to the executor. This
commit makes it so all panics are surfaced in the tasks that the user
calls. Hopefully this improves ergonomics.

After smol-rs/async-task#37 I meant to add this to the executor. This
commit makes it so all panics are surfaced in the tasks that the user
calls. Hopefully this improves ergonomics.

Signed-off-by: John Nunley <[email protected]>
@notgull notgull requested a review from fogti November 18, 2023 03:13
@fogti
Copy link
Member

fogti commented Nov 20, 2023

can you add a test for this?

@notgull
Copy link
Member Author

notgull commented Nov 21, 2023

can you add a test for this?

Added!

@fogti fogti merged commit fa117de into master Nov 21, 2023
@fogti fogti deleted the notgull/trap branch November 21, 2023 10:39
@notgull notgull mentioned this pull request Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants