MCPcopy Create free account
hub / github.com/baidu/babylon / await_suspend

Method await_suspend

test/coroutine/test_task.cpp:61–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 return false;
60 }
61 ::std::coroutine_handle<> await_suspend(
62 ::std::coroutine_handle<> awaiter) noexcept {
63 handle.promise().awaiter = awaiter;
64 return handle;
65 }
66 inline T await_resume() noexcept {
67 return ::std::move(handle.promise().value);
68 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected