Skip to content

scope: Add dynamic_scope() and dynamic_deferred_scope() algorithms - #51

Merged
avdgrinten merged 3 commits into
managarm:masterfrom
avdgrinten:dynamic-scope
Sep 29, 2026
Merged

avdgrinten merged 3 commits into
managarm:masterfrom
avdgrinten:dynamic-scope

Conversation

@avdgrinten

Copy link
Copy Markdown
Member

This adds an awaitable scope with a spawn function. The scope completes when all spawned senders complete. This is essentially a dynamic when_all. In contrast to manually spawning senders and using a wait_group, the scope propagates the work queue to the spawned senders.

Assisted-by: Claude Code (Opus 5.5)
Assisted-by: Claude Code (Opus 5.5)
@avdgrinten
avdgrinten merged commit 0d09bb1 into managarm:master Sep 29, 2026
1 of 2 checks passed
@avdgrinten
avdgrinten deleted the dynamic-scope branch September 29, 2026 17:28
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.

1 participant