In Rust debugging and stacktraces are perfectly fine because async/futures compile to a perfect state machine.

They are not perfectly fine. If a task panics then you will get the right stack trace, but there is no way to get a stack trace for a task that’s currently waiting. (At least not without intrusive hacks.)

Would this be considered an intrusive hack?

https://docs.rs/tokio/latest/%20tokio/runtime/struct.Handle....

> This functionality is experimental, and comes with a number of requirements and limitations.

I assume that answers your question.

So once it's out of the experimental stage it won't be an intrusive hack anymore?