5 ms·
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_unstab
by lkt 5y 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/builder.rs https://github.com/tokio-rs/tokio/blob/master/tokio/src/task...
- carllerche 5y agoExactly, 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.