diff --git a/library/alloc/src/task.rs b/library/alloc/src/task.rs index 5edc579605669..4d32d3f120e8b 100644 --- a/library/alloc/src/task.rs +++ b/library/alloc/src/task.rs @@ -87,3 +87,13 @@ fn raw_waker(waker: Arc) -> RawWaker { &RawWakerVTable::new(clone_waker::, wake::, wake_by_ref::, drop_waker::), ) } + +impl Wake for F { + fn wake(self: Arc) { + (self)(); + } + + fn wake_by_ref(self: &Arc) { + (self)(); + } +}