Skip to content

unblock returns Task #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 12, 2022
Merged

unblock returns Task #25

merged 2 commits into from
Mar 12, 2022

Conversation

PixelDust22
Copy link
Contributor

This PR makes it so that the unblock function returns a Task (which implements Future) instead of an opaque Future. This gives the application more opportunity for optimization knowing the exact type of the future to be returned.

This also re-exports the Task type from async_task to make this easier to use.

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 4a775eb into smol-rs:master Mar 12, 2022
@taiki-e
Copy link
Collaborator

taiki-e commented Mar 12, 2022

Published in 1.2.0

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.

2 participants