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

Method start

include/exec/when_any.hpp:203–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 STDEXEC_IMMOVABLE(__opstate);
202
203 void start() & noexcept
204 {
205 this->__on_stop_.emplace(get_stop_token(get_env(this->__rcvr_)),
206 __forward_stop_request{this->__stop_source_});
207 if (this->__stop_source_.stop_requested())
208 {
209 STDEXEC::set_stopped(static_cast<_Receiver&&>(this->__rcvr_));
210 }
211 else
212 {
213 STDEXEC::__apply(STDEXEC::__for_each{STDEXEC::start}, __ops_);
214 }
215 }
216
217 private:
218 __opstates_t __ops_;

Callers

nothing calls this directly

Calls 4

get_envFunction · 0.70
set_stoppedFunction · 0.70
emplaceMethod · 0.45
stop_requestedMethod · 0.45

Tested by

no test coverage detected