Skip to content

clarifications on when_all() effects #28

@viboes

Description

@viboes

The Effects clause states
Each future and shared_future is waited upon and then copied into the collection of the output (returned) future, maintaining the order of the futures in the input collection.

I don't think that the futures are waited in this function. IMO the future are moved and the shared_future is copied to the shared state of the new future.
It is only internal function used for the new created thread that will wait on all the futures/shared_futures.

Resuming this is not a blocking function.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions