We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be nice to await builders directly.
await
There's a nice explanation of this pattern here - https://blog.yoshuawuyts.com/async-finalizers/
it will allow us to rewrite this-
let index = Index::init(root, download) .build() .await?;
like this-
let index = Index::init(root, download) .await?;
There are two options for doing this
Future
IntoFuture
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be nice to
await
builders directly.There's a nice explanation of this pattern here - https://blog.yoshuawuyts.com/async-finalizers/
it will allow us to rewrite this-
like this-
There are two options for doing this
Future
for the builders. This isn't too hard, but it's not that clean, and makes the code look a little unapproachable.IntoFuture
for the builders. This relies on an unmerged nightly feature, and has been stuck in limbo for a while - Re-land "add IntoFuture trait and support for await" rust-lang/rust#68811The text was updated successfully, but these errors were encountered: