-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Remove spawning from task::Context #54339
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
Conversation
With the remove of |
This comment has been minimized.
This comment has been minimized.
Is the plan to provide a |
We'll continue to provide these types inside the futures crate, but they no longer need to be part of the standard library.
Yup-- everything that is being removed from here will reappear in the futures crate. |
This looks great, nice simplification. @bors r+ |
📌 Commit 1b00f0b has been approved by |
Isn't this a bit quick since the discussion is still going in rustasync/team#56? I'm for this change, but not everbody is. |
@Thomasdezeeuw The point of having the current std API is to experiment with the intended design-- any design (even the current one) needs to go through a real RFC before stabilization. I think the conversation in rustasync/team#56 has turned up enough motivating factors that we should give this approach a shot. If it doesn't work out or the RFC process resolves to a different design, then we can change it. If you think there's a solid reason we shouldn't do this (to the point that it's not worth trying) please leave a comment on rustasync/team#56 so we can take that into account! |
@cramertj I think I put forward some arguments against rushing this in rustasync/team#56 , that were only answered by “don't do this, change your API” (which I don't really consider a valid resolution). Basically, this without any solution to rustasync/team#7 is breaking the (my? maybe I'm the only one here who actually has a use case for access to the default spawner from library code…) world without any other way to do the same thing. On the other hand, this change can happen at any time until the RFC. Is there really a need to rush this forward before solving rustasync/team#7? |
Remove spawning from task::Context r? @aturon cc rustasync/team#56
☀️ Test successful - status-appveyor, status-travis |
@Ekleog IMO one of the best steps we can take towards solving rustasync/team#7 is to actually get experience using both APIs, which this change allows us to do. Additionally, I'd like to open an RFC for futures-in-std soon, and it'd be best if we could say we'd successfully tested and been using the same API as the one being RFC'd. |
@cramertj I'm not really sure I understand whether you already meant it, but… it sounds to me like the potential hooks mentioned by rustasync/team#7 would likely need to be implemented in the |
r? @aturon
cc rustasync/team#56