File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ mod skip_while;
60
60
mod step_by;
61
61
mod take;
62
62
mod take_while;
63
- mod throttle;
64
63
mod try_fold;
65
64
mod try_for_each;
66
65
mod zip;
@@ -107,16 +106,15 @@ pub use skip_while::SkipWhile;
107
106
pub use step_by:: StepBy ;
108
107
pub use take:: Take ;
109
108
pub use take_while:: TakeWhile ;
110
- pub use throttle:: Throttle ;
111
109
pub use zip:: Zip ;
112
110
113
111
use std:: cmp:: Ordering ;
114
112
use std:: marker:: PhantomData ;
115
- use std:: time:: Duration ;
116
113
117
114
cfg_unstable ! {
118
115
use std:: future:: Future ;
119
116
use std:: pin:: Pin ;
117
+ use std:: time:: Duration ;
120
118
121
119
use crate :: stream:: into_stream:: IntoStream ;
122
120
use crate :: stream:: { FromStream , Product , Sum } ;
@@ -125,11 +123,13 @@ cfg_unstable! {
125
123
pub use flatten:: Flatten ;
126
124
pub use flat_map:: FlatMap ;
127
125
pub use timeout:: { TimeoutError , Timeout } ;
126
+ pub use throttle:: Throttle ;
128
127
129
128
mod merge;
130
129
mod flatten;
131
130
mod flat_map;
132
131
mod timeout;
132
+ mod throttle;
133
133
}
134
134
135
135
extension_trait ! {
@@ -315,6 +315,7 @@ extension_trait! {
315
315
TakeWhile :: new( self , predicate)
316
316
}
317
317
318
+ #[ cfg( all( feature = "default" , feature = "unstable" ) ) ]
318
319
#[ doc = r#"
319
320
Limit the amount of items yielded per timeslice in a stream.
320
321
You can’t perform that action at this time.
0 commit comments