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

Allow to abort & get back values from JoinAll #2485

Open
piegamesde opened this issue Aug 24, 2021 · 1 comment
Open

Allow to abort & get back values from JoinAll #2485

piegamesde opened this issue Aug 24, 2021 · 1 comment
Labels
A-future Area: futures::future C-feature-request

Comments

@piegamesde
Copy link

I have a (relatively small) list of futures that need to be polled. But at any time, I may want to abort the operation and get the futures or the value they resolved back. I see that JoinAll uses a list of MaybeDone internally, which is exactly what I'm looking for. So I propose adding an into_inner method (open for bike shedding) that allows me to get the futures back.

@taiki-e taiki-e added C-feature-request A-future Area: futures::future labels Aug 28, 2021
@taiki-e
Copy link
Member

taiki-e commented Aug 28, 2021

Probably we can add methods to return iterators that return the internal future as an item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-future Area: futures::future C-feature-request
Projects
None yet
Development

No branches or pull requests

2 participants