Skip to content

Add FuturesUnordered into_iter method #1795

@canndrew

Description

@canndrew

I have a FuturesUnordered that I'd like to deconstruct and get the futures out of. Currently the only way to achieve this is to wrap the futures in some kind of OptionFuture type which allows me to call FuturesUnordered::iter_mut, steal the future, then drop the FuturesUnordered before it can be polled again. This is extra boilerplate and involves adding unwraps to my code. Could FuturesUnordered support this directly?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions