2
0
mirror of https://github.com/boostorg/cobalt.git synced 2026-01-19 04:02:16 +00:00
Files
cobalt/doc/reference/wait_group.adoc
Klemens Morgenstern 45901641ac renamed to cobalt.
2023-10-16 21:42:07 +08:00

17 lines
487 B
Plaintext

[#wait_group]
== cobalt/wait_group.hpp
The `wait_group` function can be used to manage
multiple coroutines of type `promise<void>`.
It works out of the box with <<with>>, by having the matching `await_exit` member.
Essentially, a `wait_group` is a dynamic list of
promises that has a `race` function (`wait_one`),
a `gather` function (`wait_all`) and will clean up on scope exit.
[source,cpp,subs="+quotes"]
----
include::../../include/boost/cobalt/wait_group.hpp[tag=outline]
----