File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ impl LocalWaker {
113
113
/// but you otherwise shouldn't call it directly.
114
114
///
115
115
/// 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` .
118
118
///
119
119
/// For this function to be used safely, it must be sound to call `inner.wake_local()`
120
120
/// on the current thread.
@@ -197,9 +197,7 @@ impl Drop for LocalWaker {
197
197
/// customization.
198
198
///
199
199
/// 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`.
203
201
pub unsafe trait UnsafeWake : Send + Sync {
204
202
/// Creates a clone of this `UnsafeWake` and stores it behind a `Waker`.
205
203
///
You can’t perform that action at this time.
0 commit comments