Skip to content

Commit

Permalink
Merge pull request #22 from A248/wake-by-ref
Browse files Browse the repository at this point in the history
Add Wake::wake_by_ref implementation
  • Loading branch information
zesterer committed Sep 24, 2023
2 parents 5764258 + 7cd0d0e commit 58f420e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ impl Wake for Signal {
fn wake(self: Arc<Self>) {
self.notify();
}

fn wake_by_ref(self: &Arc<Self>) {
self.notify();
}
}

/// Block the thread until the future is ready.
Expand Down

0 comments on commit 58f420e

Please sign in to comment.