File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,7 @@ extension_trait! {
318
318
#[ doc = r#"
319
319
Limit the amount of items yielded per timeslice in a stream.
320
320
321
+ This stream does not drop any items, but will only limit the rate at which items pass through.
321
322
# Examples
322
323
```
323
324
# fn main() { async_std::task::block_on(async {
Original file line number Diff line number Diff line change @@ -9,7 +9,13 @@ use crate::stream::Stream;
9
9
use crate :: task:: { Context , Poll } ;
10
10
11
11
pin_project ! {
12
- /// A stream that only yields one element once every `duration`, and applies backpressure. Does not drop any elements.
12
+ /// A stream that only yields one element once every `duration`.
13
+ ///
14
+ /// This `struct` is created by the [`throttle`] method on [`Stream`]. See its
15
+ /// documentation for more.
16
+ ///
17
+ /// [`throttle`]: trait.Stream.html#method.throttle
18
+ /// [`Stream`]: trait.Stream.html
13
19
#[ doc( hidden) ]
14
20
#[ allow( missing_debug_implementations) ]
15
21
pub struct Throttle <S > {
You can’t perform that action at this time.
0 commit comments