We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f99911a + 3539132 commit f5bc109Copy full SHA for f5bc109
src/libcore/task/wake.rs
@@ -188,6 +188,11 @@ impl LocalWaker {
188
}
189
190
impl From<LocalWaker> for Waker {
191
+ /// Converts a `LocalWaker` into a `Waker`.
192
+ ///
193
+ /// This conversion turns a `!Sync` `LocalWaker` into a `Sync` `Waker`, allowing a wakeup
194
+ /// 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