Hacker News new | ask | show | jobs
by lkt 1642 days ago
Looks like they have added a builder for tokio::task[1] that will allow you to set a name. It's unstable at the moment so you would need to set the tokio_unstable cfg flag.

[1]: https://github.com/tokio-rs/tokio/blob/master/tokio/src/task...

1 comments

Exactly, this is the first release of Tokio Console. We will keep adding functionality over time, which will help inform the APIs in Tokio to better provide the necessary instrumentation.

I expect the new APIs like the task builder will stabilize (no longer require the `tokio_unstable` flag) over the course of 2022.