We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a70ef6a commit 3539132Copy full SHA for 3539132
src/libcore/task/wake.rs
@@ -190,8 +190,9 @@ impl LocalWaker {
190
impl From<LocalWaker> for Waker {
191
/// Converts a `LocalWaker` into a `Waker`.
192
///
193
- /// This conversion forgets local waker and allocates a new waker with
194
- /// the same inner.
+ /// This conversion turns a `!Sync` `LocalWaker` into a `Sync` `Waker`, allowing a wakeup
+ /// object to be sent to another thread, but giving up its ability to do specialized
195
+ /// thread-local wakeup behavior.
196
#[inline]
197
fn from(local_waker: LocalWaker) -> Self {
198
local_waker.0
0 commit comments