MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / __resume

Method __resume

include/stdexec/coroutine.hpp:206–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204 struct __destroy_and_continue_frame : __detail::__synthetic_coro_frame
205 {
206 static void __resume(void* __address) noexcept
207 {
208 // Make a local copy of the promise to ensure we can safely destroy the suspended
209 // coroutine after resuming the continuation.
210 auto& __self = *static_cast<__destroy_and_continue_frame*>(__address);
211 auto __destroy = __self.__promise_.__destroy_;
212 STDEXEC::__coroutine_resume_nothrow(__self.__promise_.__continue_);
213 STDEXEC::__coroutine_destroy_nothrow(__destroy);
214 }
215
216 struct __promise
217 {

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected