forked from scylladb/seastar
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coroutine: experimental: generator: implement move and swap
The coroutine generator move ctor, move assignment operator, and swap override were never fully implemented. This patch completes their implementation and adds unit tests to cover move and swap and also moving not-drained generator (to test moving of their buffered value(s)). Fixes scylladb#1789 Signed-off-by: Benny Halevy <[email protected]>
- Loading branch information
Showing
2 changed files
with
138 additions
and
8 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