File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
futures-util/src/stream/stream Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,9 @@ pub trait StreamExt: Stream {
337
337
/// wrapped version of it, similar to the existing `map` methods in the
338
338
/// standard library.
339
339
///
340
+ /// See [`StreamExt::then`](Self::then) if you want to use a closure that
341
+ /// returns a future instead of a value.
342
+ ///
340
343
/// # Examples
341
344
///
342
345
/// ```
@@ -481,6 +484,9 @@ pub trait StreamExt: Stream {
481
484
/// Note that this function consumes the stream passed into it and returns a
482
485
/// wrapped version of it.
483
486
///
487
+ /// See [`StreamExt::map`](Self::map) if you want to use a closure that
488
+ /// returns a value instead of a future.
489
+ ///
484
490
/// # Examples
485
491
///
486
492
/// ```
You can’t perform that action at this time.
0 commit comments