mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-24 18:32:40 +00:00
30b8a77fc9
Due to tokio-rs/tokio#4780, a panicking top-level future combined with an uncooperative background task prevents runtime shutdown. To avoid this in the case of `Rocket::launch()` returning an `Error`, which panics on drop if it isn't inspected, we return the `Result` to the caller (i.e., `main`) instead of the `block_on` future. This prevent the panic from occuring inside of the `block_on` future and so the runtime terminates even with uncooperative I/O. |
||
---|---|---|
.. | ||
codegen | ||
http | ||
lib |