File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ impl LocalWaker {
113113 /// but you otherwise shouldn't call it directly.
114114 ///
115115 /// If you're working with the standard library then it's recommended to
116- /// use the `LocalWaker::from` function instead which works with the safe
117- /// `Rc` type and the safe `LocalWake` trait .
116+ /// use the `local_waker_from_nonlocal` or `local_waker` to convert a `Waker`
117+ /// into a `LocalWaker` .
118118 ///
119119 /// For this function to be used safely, it must be sound to call `inner.wake_local()`
120120 /// on the current thread.
@@ -197,9 +197,7 @@ impl Drop for LocalWaker {
197197/// customization.
198198///
199199/// When using `std`, a default implementation of the `UnsafeWake` trait is provided for
200- /// `Arc<T>` where `T: Wake` and `Rc<T>` where `T: LocalWake`.
201- ///
202- /// Although the methods on `UnsafeWake` take pointers rather than references,
200+ /// `Arc<T>` where `T: Wake`.
203201pub unsafe trait UnsafeWake : Send + Sync {
204202 /// Creates a clone of this `UnsafeWake` and stores it behind a `Waker`.
205203 ///
You can’t perform that action at this time.
0 commit comments