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

Method __spawn_opstate

include/exec/async_scope.hpp:780–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778 struct __spawn_opstate : __spawn_opstate_base<_Env>
779 {
780 constexpr explicit __spawn_opstate(connect_t,
781 _Sender&& __sndr,
782 _Env __env,
783 __impl const * __scope)
784 : __spawn_opstate_base<_Env>{__env::__join(static_cast<_Env&&>(__env),
785 __spawn_env{
786 __scope->__stop_source_.get_token()}),
787 [](__spawn_opstate_base<_Env>* __op)
788 { delete static_cast<__spawn_opstate*>(__op); }}
789 , __data_(static_cast<_Sender&&>(__sndr), __spawn_receiver<_Env>{this})
790 {}
791
792 constexpr explicit __spawn_opstate(_Sender __sndr, _Env __env, __impl const * __scope)
793 : __spawn_opstate(STDEXEC::connect,

Callers

nothing calls this directly

Calls 2

get_tokenMethod · 0.45
submitMethod · 0.45

Tested by

no test coverage detected