-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement FusedStream for Receiver #3
Comments
impl<T> FusedStream for Receiver<T> {
fn is_terminated(&self) {
self.channel.queue.is_closed() && self.channel.queue.is_empty()
}
} |
I'm curious: in what cases is This sounds good - just a small correction: the |
It is i.a. used for using the |
As |
as
Receiver
can detect if the channel isclosed
, it probably can implementFusedStream
...see also concurrent_queue::ConcurrentQueue::is_closed
The text was updated successfully, but these errors were encountered: