#include #include int main() { auto say = [](const T& t) { std::cout << "[" << as::this_fiber::get_id() << "]: " << t << std::endl; }; as::fiber f1([&] { say("f1"); as::fiber f2(say, "f2"); f2.join(); say("f1"); }); f1.join(); }