Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jbaldwin
Copy link
Owner

Adds support for return type void for when_any when using ranges.

Tuple when_any requires the user to specify the return type as std::monostate instad of void because std::variant does not allow or support void as a type per the standard.

Closes #306

@jbaldwin jbaldwin self-assigned this Mar 25, 2025
@jbaldwin jbaldwin force-pushed the issue-306/when-any-return-void branch from 826c60a to fe77df1 Compare March 25, 2025 12:59
Adds support for return type `void` for `when_any` when using ranges.

Tuple when_any requires the user to specify the return type as
`std::monostate` instad of `void` because `std::variant` does not allow
or support `void` as a type per the standard.

Closes #306
@jbaldwin jbaldwin force-pushed the issue-306/when-any-return-void branch from fe77df1 to 28822dd Compare March 25, 2025 13:16
@jbaldwin jbaldwin merged commit 8fc3e27 into main Mar 26, 2025
37 checks passed
@jbaldwin jbaldwin deleted the issue-306/when-any-return-void branch March 26, 2025 18:32
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.

Add support coro::task<void> for coro::when_any

2 participants