Function crash_handler::setup_panic_handler
source · pub fn setup_panic_handler()
Expand description
Invoke to ensure process exits on a thread panic.
Tokio’s default behavior is to catch panics and ignore them. Invoking this function will ensure that all subsequent thread panics (even Tokio threads) will report the details/backtrace and then exit.