Hey all, I'm using Tokio with the
#[tokio::main] attribute. When a panic occurs I noticed that the current panicking task will end but the program is still running. I assume that is because other tasks are running. I'm using
tokio::spawn to start new async tasks.
I would like the entire program to end as soon as any panic occurs. I plan on having long running programs doing some calculations and I need the process to exit with an error code as soon as possible.
Is there any way of doing this ? Am I missing something here ?