File tree 1 file changed +7
-3
lines changed
futures-util/src/try_stream
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ pub use self::try_for_each::TryForEach;
28
28
mod try_filter_map;
29
29
pub use self :: try_filter_map:: TryFilterMap ;
30
30
31
- mod try_buffer_unordered;
32
- pub use self :: try_buffer_unordered:: TryBufferUnordered ;
33
-
34
31
if_std ! {
32
+ mod try_buffer_unordered;
33
+ pub use self :: try_buffer_unordered:: TryBufferUnordered ;
34
+
35
35
mod try_collect;
36
36
pub use self :: try_collect:: TryCollect ;
37
37
}
@@ -309,6 +309,9 @@ pub trait TryStreamExt: TryStream {
309
309
/// an error or a future's output. An error can be produced either by the
310
310
/// underlying stream itself or by one of the futures it yielded.
311
311
///
312
+ /// This method is only available when the `std` feature of this
313
+ /// library is activated, and it is activated by default.
314
+ ///
312
315
/// # Examples
313
316
///
314
317
/// Results are returned in the order of completion:
@@ -353,6 +356,7 @@ pub trait TryStreamExt: TryStream {
353
356
/// assert_eq!(await!(buffered.next()), Some(Err("error in the stream")));
354
357
/// # })
355
358
/// ```
359
+ #[ cfg( feature = "std" ) ]
356
360
fn try_buffer_unordered ( self , n : usize ) -> TryBufferUnordered < Self >
357
361
where Self :: Ok : TryFuture < Error = Self :: Error > ,
358
362
Self : Sized
You can’t perform that action at this time.
0 commit comments