tokio-rs / tokio

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
https://tokio.rs
MIT License
26.59k stars 2.45k forks source link

sync: add sender_weak_count and sender_strong_count for Receiver #6661

Closed Rustin170506 closed 3 months ago

Rustin170506 commented 3 months ago

Motivation

close https://github.com/tokio-rs/tokio/issues/6653

Solution

Added sender_weak_count and sender_strong_count for Receiver and UnboundedReceiver.