Closed daxpedda closed 1 year ago
This uses Waker::will_wake() to check if the old waker will awaken the same task as the new one, which could save a clone operation.
Waker::will_wake()
This is analogous to https://github.com/smol-rs/atomic-waker/pull/12.
This is analogous to https://github.com/smol-rs/atomic-waker/pull/12.