Skip to content

Conversation

@daxpedda
Copy link
Contributor

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.

Fixes #11.

@notgull
Copy link
Member

notgull commented Mar 16, 2023

This looks good to me, but I'm not familiar enough with futures infrastructure to comment.

@taiki-e Does this look good to you?

Copy link
Collaborator

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@taiki-e taiki-e merged commit 4320c67 into smol-rs:master Mar 22, 2023
@notgull notgull mentioned this pull request Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Use Waker::will_wake()

3 participants