Tokio: async-await-preview feature missing in master.

Created on 16 May 2019  路  4Comments  路  Source: tokio-rs/tokio

Version

master @ 38092010c4113e80612fe61bfec08a44c3d41a65

Platform

All

Subcrates

N/A

Description

The 0.1.x branch removed the async-await-preview feature.

When this was merged into master, it became no longer possible for tokio to export the async-await items in the top-level crate as there's no feature present to enable it.

I assume we still need the feature in master.

Most helpful comment

Thanks for the report. 0.1 started lagging behind breaking changes in nightly. We opted to stop maintaining async-await-preview in 0.1 in favor of a full update, which is happening in https://github.com/tokio-rs/tokio/pull/1120

It is a very big process, so it will take some time to finish.

All 4 comments

Thanks for the report. 0.1 started lagging behind breaking changes in nightly. We opted to stop maintaining async-await-preview in 0.1 in favor of a full update, which is happening in https://github.com/tokio-rs/tokio/pull/1120

It is a very big process, so it will take some time to finish.

1120 was merged. Should the feature be re-enabled or are there further tickets tracking how/when we might be able to try async/await preview work?

@ehiggs its no longer a preview :) The master branch contains work in progress breaking changes for tokio 0.2 which will include full support for std::future::Future and async/await. So really all you need to do is fetch tokio from git, use a nightly compiler and set the #![feature(async_await)] flag. There should be some examples if you look around the master branch.

Also, #1201 is the tracking issue.

Was this page helpful?
0 / 5 - 0 ratings