8000 coro::when_any support tuples (different return types!) by jbaldwin · Pull Request #301 · jbaldwin/libcoro · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

coro::when_any support tuples (different return types!) #301

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
Feb 17, 2025

Conversation

jbaldwin
Copy link
Owner

when_any now supports taking a parameter pack of tasks that can all return unique types, the most useful use of this right now is by using when_any to have a task and a timeout. To facilitate this usage coro::io_scheduler has a new schedule function:

schedule(stop_token, task, timeout)

Closes #300

when_any now supports taking a parameter pack of tasks that can all
return unique types, the most useful use of this right now is by
using when_any to have a task and a timeout. To facilitate this
usage coro::io_scheduler has a new schedule function:

schedule(stop_token, task, timeout)

Closes #300
@jbaldwin jbaldwin self-assigned this Feb 17, 2025
@jbaldwin jbaldwin merged commit 8658123 into main Feb 17, 2025
37 checks passed
@jbaldwin jbaldwin deleted the when-any-support-tuples branch February 17, 2025 23:35
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.

coro:when_any tuple support (multiple return types)
1 participant
0