We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbc403a commit 0e4dc7dCopy full SHA for 0e4dc7d
futures-channel/src/mpsc/mod.rs
@@ -282,7 +282,7 @@ struct UnboundedInner<T> {
282
283
#[derive(Debug)]
284
struct BoundedInner<T> {
285
- // Max buffer size of the channel. If `None` then the channel is unbounded.
+ // Max buffer size of the channel.
286
buffer: usize,
287
288
// Internal channel state. Consists of the number of messages stored in the
@@ -1125,6 +1125,10 @@ impl<T> Stream for Receiver<T> {
1125
}
1126
1127
1128
+
1129
+ fn size_hint(&self) -> (usize, Option<usize>) {
1130
+ (0, self.inner.as_ref().map(|i| i.buffer))
1131
+ }
1132
1133
1134
impl<T> Drop for Receiver<T> {
0 commit comments