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

Method set_stopped

include/exec/task.hpp:403–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401 }
402
403 void set_stopped() noexcept
404 {
405 // Resuming the stopped continuation unwinds the coroutine stack until we reach
406 // a promise that can handle the stopped signal. The coroutine referred to by
407 // __continuation_ will never be resumed.
408 __std::coroutine_handle<> __unwind = __parent_.promise().unhandled_stopped();
409 STDEXEC::__coroutine_resume_nothrow(__unwind);
410 }
411
412 [[nodiscard]]
413 auto get_env() const noexcept -> env_of_t<_Promise>

Callers

nothing calls this directly

Calls 3

promiseMethod · 0.80
unhandled_stoppedMethod · 0.45

Tested by

no test coverage detected