Rocket/core
Sergio Benitez 30b8a77fc9 Avoid dropping 'Error' inside '#[launch]' future.
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.
2022-06-20 23:49:41 -07:00
..
codegen Avoid dropping 'Error' inside '#[launch]' future. 2022-06-20 23:49:41 -07:00
http Add several new known media types: 2022-06-13 15:29:32 -07:00
lib Avoid dropping 'Error' inside '#[launch]' future. 2022-06-20 23:49:41 -07:00