Apply suggestion from @tisonkun
This commit is contained in:
parent
cd39f5a5fe
commit
6346d14202
1 changed files with 1 additions and 0 deletions
|
|
@ -360,6 +360,7 @@ impl<W: LocalWake + 'static> From<Rc<W>> for RawWaker {
|
|||
/// waker.wake_by_ref(); // Prints "woken".
|
||||
/// waker.wake(); // Prints "woken".
|
||||
/// ```
|
||||
// #[unstable(feature = "local_waker", issue = "118959")]
|
||||
#[unstable(feature = "waker_fn", issue = "149580")]
|
||||
pub fn local_waker_fn<F: Fn() + Send + Sync + 'static>(f: F) -> LocalWaker {
|
||||
struct LocalWakeFn<F> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue