mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-17 00:00:11 +02:00
If a future panics from within the context of a thread pool, the pool should not be impacted. To do this, polling the future is wrapped with a catch_unwind. Extra care is taken to ensure that `thread::panicking()` is set from within the future's drop handle. Fixes #209