-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Updating to std::future::Future #1805
Comments
I might be missing something, but is there a tracking issue on Tower to support 0.3 futures? |
You say you are just considering it, but would TLS (Thread Local Storage, I presume) play well with Tokio's multi-threaded executor and, for example with conditional calls to |
That should be fine. When calling |
Most of the dependencies needed are updated in tokio's std-future branch. Disabling tokio-threadpool and h2 should hopefully be enough to start a branch here. It's probably not worth figuring out some TLS Context thingy, and just passing the argument everywhere. |
#1836 is the PR for this, it's pretty close. Most things work (minus h2), and I have some local work to remove much of added unsafety, which I hope to have ready Monday. I'll likely merge that into master with docs and tests disabled, to allow those things to be worked on in parallel. |
Master is now tracking 0.13, and #1836 was merged into it. It lacks HTTP2 support, an unsafe pin audit, and all the tests and examples were disabled, but hopefully those can be worked on in parallel. |
Thanks everyone for working on this! I'm a bit confused about one thing though - is the move to |
|
Thanks. I asked on the tokio Gitter channel; apparently they want to only release |
@seanmonstar are there plans to migrate |
@abonander Might be a tricky tricky to do so for a few reasons:
Personally, I'd love to have a shared interface/trait at the moment for the reasons you outlined, but I'm not confident any of the shared interfaces— |
@davidbarsky I mostly meant if there were plans to add the impl even though I used "instead of". I didn't mean removing any other API. |
@abonander Ah, sorry about that; I misread what you said. Maybe? I'm not 100% sure how that could be implemented without needing specialization, but I might be missing something! |
@davidbarsky how would specialization be necessary? There's only one possible impl, |
No plans so far... Here's some reasons of the top of my head why not to:
If there are good reasons to consider otherwise, we should open a new specific issue to discuss, ya? |
All the original "features" on master now use std::future, so I'm going to close this. Some tests and docs still need updating, thought. |
With
std::future::Future
stabilizing in Rust 1.36, it is a goal to upgrade fromfutures@0.1
tostd::future::Future
in the next breaking change (hyper@0.13
).Status:
The text was updated successfully, but these errors were encountered: