Skip to content

Commit 6a69c0f

Browse files
seanmonstarNemo157
authored andcommitted
Remove mention of panic from noop_waker docs
1 parent 35d406b commit 6a69c0f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

futures-util/src/task/noop_waker.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ fn noop_raw_waker() -> RawWaker {
1717
}
1818

1919
/// Create a new [`Waker`](futures_core::task::Waker) which does
20-
/// nothing when `wake()` is called on it. The [`Waker`](futures_core::task::Waker) can be converted
21-
/// into a [`Waker`](futures_core::task::Waker) which will behave the same way.
20+
/// nothing when `wake()` is called on it.
2221
///
2322
/// # Examples
2423
///
@@ -34,9 +33,8 @@ pub fn noop_waker() -> Waker {
3433
}
3534
}
3635

37-
/// Get a thread local reference to a
38-
/// [`Waker`](futures_core::task::Waker) referencing a singleton
39-
/// instance of a [`Waker`](futures_core::task::Waker) which panics when woken.
36+
/// Get a static reference to a [`Waker`](futures_core::task::Waker) which
37+
/// does nothing when `wake()` is called on it.
4038
///
4139
/// # Examples
4240
///

0 commit comments

Comments
 (0)