Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
** xref:coroutines/tasks.adoc[Tasks]
** xref:coroutines/launching.adoc[Launching Tasks]
** xref:coroutines/when-all.adoc[Concurrent Composition]
** xref:coroutines/when-any.adoc[Racing Tasks]
** xref:coroutines/affinity.adoc[Executor Affinity]
** xref:coroutines/cancellation.adoc[Cancellation]
* Execution
Expand Down
3 changes: 2 additions & 1 deletion doc/modules/ROOT/pages/coroutines/when-all.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ Use `when_all` when:
Do NOT use `when_all` when:

* Operations depend on each other — use sequential `co_await`
* You need results as they completeconsider `when_any` (not yet available)
* You need only the first resultuse xref:when-any.adoc[when_any]
* Memory is constrained — concurrent tasks consume more memory

== Summary
Expand All @@ -269,6 +269,7 @@ Do NOT use `when_all` when:

== Next Steps

* xref:when-any.adoc[Racing Tasks] — Return first completion with `when_any`
* xref:cancellation.adoc[Cancellation] — Stop token propagation
* xref:../execution/thread-pool.adoc[Thread Pool] — Multi-threaded execution
* xref:affinity.adoc[Executor Affinity] — Control where tasks run
Loading
Loading