-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This update allows the Task to transfer ownership of the coroutine handle to the `awaiter` returned by the Task's `operator co_await()` method. Without this update [the linked test would fail on this line](https://github.com/nv-morpheus/MRC/compare/branch-23.01...ryanolson:task_lifecycle?expand=1#diff-abd2fa1b390dadc99ee7076e518e5ba9029bb0618c908af2ba54134c519f7277R135), because the Task is created in the Awaitable's `operator co_await()` method would not transfer ownership of the coroutines handle to the awaitable, so the Task's destructor would destroy the coroutine who's awaited the caller is awaiting on. Authors: - Ryan Olson (https://github.com/ryanolson) Approvers: - Michael Demoret (https://github.com/mdemoret-nv) URL: #259
- Loading branch information
Showing
4 changed files
with
59 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters