8000 Add support for coro::task<void> for coro::when_any by jbaldwin · Pull Request #310 · jbaldwin/libcoro · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2025

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
1 participant
0