@@ -543,11 +543,12 @@ impl Waker {
543
543
///
544
544
/// # Warning
545
545
///
546
- /// Do not use this function as a way to be able to call `poll` methods in production code
547
- /// from within a non-`async`, non-`poll`, function.
546
+ /// When implementing a runtime-agnostic future which wraps other future(s),
547
+ /// do not use this function as a way to be able to call `poll` methods
548
+ /// when you don't have your caller's `Context` available.
548
549
///
549
550
/// Using a no-op waker for that purpose would cause wakeups to be lost:
550
- /// the future would store only the no-op waker,
551
+ /// the inner future would store only the no-op waker,
551
552
/// replacing the proper waker for the waiting task.
552
553
///
553
554
/// # Examples
@@ -809,12 +810,12 @@ impl LocalWaker {
809
810
///
810
811
/// # Warning
811
812
///
812
- /// Do not use this function as a way to be able to call `poll` methods ,
813
- /// in production code,
814
- /// from within a non-`async`, non-`poll`, function .
813
+ /// When implementing a runtime-agnostic future which wraps other future(s) ,
814
+ /// do not use this function as a way to be able to call `poll` methods
815
+ /// when you don't have your caller's `Context` available .
815
816
///
816
817
/// Using a no-op waker for that purpose would cause wakeups to be lost:
817
- /// the future would store only the no-op waker,
818
+ /// the inner future would store only the no-op waker,
818
819
/// replacing the proper waker for the waiting task.
819
820
///
820
821
/// # Examples
0 commit comments