Skip to content
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

async-await: update to new future/task API #919

Merged
merged 3 commits into from
Feb 22, 2019
Merged

async-await: update to new future/task API #919

merged 3 commits into from
Feb 22, 2019

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Feb 22, 2019

Motivation

future/task API updated in rust-lang/rust#57992.

Solution

Rewrites the noop_waker with items from the new API and replaces LocalWaker with Waker.

This also bumps the minimum required version of tokio-async-await to 1.34.0-nightly.

Fixes: #908

This rewrites noop_waker with items from the new API and replaces
LocalWaker with Waker.

This also bumps the minimum required version of tokio-async-await to
1.34.0-nightly.

Fixes: #908
Unpin was added to std prelude.
This will check if it can compile using the latest future/task API.

Since this build is allowed to fail, it will not affect other PRs.
@taiki-e
Copy link
Member Author

taiki-e commented Feb 22, 2019

The new noop_waker implementation is based on the new noop_waker of futures-rs (this changed in rust-lang/futures-rs#1445).

Copy link
Member

@carllerche carllerche left a comment

Choose a reason for hiding this comment

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

Thanks for getting this done 👍

@carllerche carllerche merged commit 4985e0c into tokio-rs:master Feb 22, 2019
@taiki-e taiki-e deleted the update-async-await branch February 22, 2019 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't install tokio async await ( LocalWaker )
2 participants