A way to check if Runtime has panicked tasks #1999
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-runtime
Module: tokio/runtime
Version
0.2.6
Platform
Irrelevant, it's an API issue.
Description
I'm looking for some way to detect whether the panics occurred or not at
Runtime
.My use case is pretty simple, I just need it to fail tests if something goes wrong.
I understand I can simply use a
basic_scheduler
, and with that setup it would panic the running thread. That's what I ended up doing right now.Is there a plan to enhance the API to provide some was of doing this for a multi-threaded scheduler?
The text was updated successfully, but these errors were encountered: