summaryrefslogtreecommitdiff
path: root/src/stream_ext/next.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream_ext/next.rs')
-rw-r--r--src/stream_ext/next.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stream_ext/next.rs b/src/stream_ext/next.rs
index 175490c..706069f 100644
--- a/src/stream_ext/next.rs
+++ b/src/stream_ext/next.rs
@@ -8,6 +8,13 @@ use pin_project_lite::pin_project;
pin_project! {
/// Future for the [`next`](super::StreamExt::next) method.
+ ///
+ /// # Cancel safety
+ ///
+ /// This method is cancel safe. It only
+ /// holds onto a reference to the underlying stream,
+ /// so dropping it will never lose a value.
+ ///
#[derive(Debug)]
#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct Next<'a, St: ?Sized> {