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 {
337337/// wrapped version of it, similar to the existing `map` methods in the 
338338/// standard library. 
339339/// 
340+ /// See [`StreamExt::then`](Self::then) if you want to use a closure that 
341+ /// returns a future instead of a value. 
342+ /// 
340343/// # Examples 
341344/// 
342345/// ``` 
@@ -481,6 +484,9 @@ pub trait StreamExt: Stream {
481484/// Note that this function consumes the stream passed into it and returns a 
482485/// wrapped version of it. 
483486/// 
487+ /// See [`StreamExt::map`](Self::map) if you want to use a closure that 
488+ /// returns a value instead of a future. 
489+ /// 
484490/// # Examples 
485491/// 
486492/// ``` 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments