consolidate c++11 example for symmetric coroutine