futures-rs icon indicating copy to clipboard operation
futures-rs copied to clipboard

Allow to abort & get back values from `JoinAll`

Open piegamesde opened this issue 4 years ago • 1 comments

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.

piegamesde avatar Aug 24 '21 00:08 piegamesde

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

taiki-e avatar Aug 28 '21 10:08 taiki-e