Monitor channel buffer capacity #2642
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-medium
Call for participation: Experience needed to fix: Medium / intermediate
M-sync
Module: tokio/sync
Describe the solution you'd like
Provide a way to monitor the capacity of the channel buffers. i.e.
Describe alternatives you've considered
Currently using atomics to keep an accounting
Additional context
Not sure if that would be the correct way to handle it, in my case the loading on one worker thread may vary so I used the count to temporarily spawn additional works as needed.
Additionally the ability to resize the semaphore would be nice. Obviously there are ways to handle this outside of tokio, but I wasn't sure if it was basically already (nearly) possible with the semaphore api.
Thanks!
The text was updated successfully, but these errors were encountered: