File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -188,10 +188,13 @@ pub trait Stream: 'static {
188
188
189
189
/// Converts this stream into a `Future`.
190
190
///
191
- /// A stream can be viewed as simply a future which will resolve to the next
192
- /// element of the stream as well as the stream itself. The returned future
193
- /// can be used to compose streams and futures together by placing
194
- /// everything into the "world of futures".
191
+ /// A stream can be viewed as a future which will resolve to a pair containing
192
+ /// the next element of the stream plus the remaining stream. If the stream
193
+ /// terminates, then the next element is `None` and the remaining stream is
194
+ /// still passed back, to allow reclamation of its resources.
195
+ ///
196
+ /// The returned future can be used to compose streams and futures together by
197
+ /// placing everything into the "world of futures".
195
198
fn into_future ( self ) -> StreamFuture < Self >
196
199
where Self : Sized
197
200
{
You can’t perform that action at this time.
0 commit comments