Skip to content

test that non-forking rvalue awaitables can be safely captured into a task - #142

Merged
tzcnt merged 1 commit into
mainfrom
movable_rvalue_awaitables
Jul 14, 2026
Merged

test that non-forking rvalue awaitables can be safely captured into a task#142
tzcnt merged 1 commit into
mainfrom
movable_rvalue_awaitables

Conversation

@tzcnt

@tzcnt tzcnt commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Tests for tzcnt/TooManyCooks#271

Because these awaitables are movable, when bound to a task wrapper either implicitly, or via tmc::as_task, they are bound as values, so their lifetime is the same as the task.

@tzcnt
tzcnt merged commit 59205ad into main Jul 14, 2026
21 checks passed
@tzcnt
tzcnt deleted the movable_rvalue_awaitables branch July 14, 2026 03: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.

1 participant