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

compat: use a CurrentRef waker in 01 compat #1262

Merged
merged 1 commit into from
Oct 1, 2018

Commits on Sep 17, 2018

  1. compat: use a CurrentRef waker in 01 compat

    Just to poll a `Future01`, it isn't yet necessary to call
    `task01::current()`, nor store it in an `Arc::new`. All that is needed
    is a "reference", and if someone calls `waker().clone()`, *then* we can
    do the allocations.
    seanmonstar committed Sep 17, 2018
    Configuration menu
    Copy the full SHA
    4757307 View commit details
    Browse the repository at this point in the history