Skip to content

Add test for when_all throwing on individual tasks.#281

Merged
jbaldwin merged 1 commit intomainfrom
when_all_throws_test
Nov 15, 2024
Merged

Add test for when_all throwing on individual tasks.#281
jbaldwin merged 1 commit intomainfrom
when_all_throws_test

Conversation

@jbaldwin
Copy link
Owner

@jbaldwin jbaldwin commented Nov 3, 2024

The original behavior for coro::when_all was to capture the T result or an exception and then when the user iterates all of the completed tasks the task.return_value() would either return the result or re-throw the exception for that specific task.

@jbaldwin jbaldwin self-assigned this Nov 3, 2024
@jbaldwin jbaldwin linked an issue Nov 3, 2024 that may be closed by this pull request
The original behavior for coro::when_all was to capture the T result or
an exception and then when the user iterates all of the completed tasks
the task.return_value() would either return the result or re-throw the
exception for that specific task.
@jbaldwin jbaldwin force-pushed the when_all_throws_test branch from 7b71600 to 1a72a92 Compare November 15, 2024 15:23
@jbaldwin jbaldwin merged commit 86740cc into main Nov 15, 2024
@jbaldwin jbaldwin deleted the when_all_throws_test branch November 15, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option for wait_all to propagate exceptions eagarly

1 participant