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 1c843a8 commit 1fd05a1Copy full SHA for 1fd05a1
src/stream/stream/throttle.rs
@@ -45,6 +45,8 @@ impl<S: Stream> Stream for Throttle<S, S::Item> {
45
// Sets last to None.
46
*self.as_mut().delay() = Some(Delay::new(self.duration));
47
return Poll::Ready(Some(v));
48
+ } else {
49
+ *self.as_mut().delay() = None;
50
}
51
52
0 commit comments