rust-lang / futures-rs

Zero-cost asynchronous programming in Rust
https://rust-lang.github.io/futures-rs/
Apache License 2.0
5.34k stars 616 forks source link

Add `len` method for `UnboundedSender` #2750

Closed thement closed 1 year ago

thement commented 1 year ago

Add len method to inspect how many messages are enqueued in the message queue.

taiki-e commented 1 year ago

Thanks for the PR. Could you fix a clippy warning? (Other CI failures should be fixed by rebase)

taiki-e commented 1 year ago

Also, could you add a test for this?

thement commented 1 year ago

Fixed.