MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / await_suspend

Method await_suspend

tests/EduCoroutineExprTest.cpp:59–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 bool await_ready() { return false; }
58 T await_resume() { return std::move(coro.promise().result); }
59 auto await_suspend(std::coroutine_handle<> h)
60 {
61 coro.promise().previous = h;
62 return coro;
63 }
64 std::coroutine_handle<promise_type> coro;
65 };
66 awaiter operator co_await() { return awaiter{coro}; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected