I have an async Rust program that is infinite looping.
Is there a way to kill the program in a way where it dumps out all active async tasks + which lines those tasks are running ?
You can use an async signal handler so you can dump some state: ctrl_c in tokio::signal - Rust but this may not work if stuff is just blocked / hangs
But perhaps this is better? Console Dev Diary #1 | Tokio - An asynchronous Rust runtime
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.