mirror of
https://github.com/boostorg/coroutine.git
synced 2026-01-30 19:52:18 +00:00
rename symmetric_coroutine_self -> symmetric_coroutine_yield
This commit is contained in:
@@ -17,19 +17,19 @@ int main( int argc, char * argv[])
|
||||
coro_t * other2 = 0;
|
||||
|
||||
coro_t coro1(
|
||||
[&]( coro_t::self_type & self) {
|
||||
[&]( coro_t::yield_type & yield) {
|
||||
std::cout << "foo1" << std::endl;
|
||||
self( * other2);
|
||||
yield( * other2);
|
||||
std::cout << "foo2" << std::endl;
|
||||
self( * other2);
|
||||
yield( * other2);
|
||||
std::cout << "foo3" << std::endl;
|
||||
});
|
||||
coro_t coro2(
|
||||
[&]( coro_t::self_type & self) {
|
||||
[&]( coro_t::yield_type & yield) {
|
||||
std::cout << "bar1" << std::endl;
|
||||
self( * other1);
|
||||
yield( * other1);
|
||||
std::cout << "bar2" << std::endl;
|
||||
self( * other1);
|
||||
yield( * other1);
|
||||
std::cout << "bar3" << std::endl;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user