3 ms·
> Try to find the current number of running tasks being managed by tokio… As a heavy user of async Rust in production (at a couple places), resource leaks / la
by fasterthanlime 4y ago
> Try to find the current number of running tasks being managed by tokio…
As a heavy user of async Rust in production (at a couple places), resource leaks / lack of visibility into that has been a top issue.
In this area, tokio-console[1] is an exciting development. I have high hopes for it and adjacent tools in the future. (Instrumenting your app with tracing+opentelemetry stuff can help a lot, too).
Until those become featureful/mainstream enough, Go has the upper hand in terms of "figuring out what's going on in an async program at any given time".
[1]: https://lib.rs/crates/tokio-console https://lib.rs/crates/tokio-console
- inferiorhuman 4y agoOkay that's really cool, I'm going to have to play around with it.