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

Method spawn

include/exec/async_scope.hpp:839–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837 template <__movable_value _Env = env<>, sender_in<__spawn_env_t<_Env>> _Sender>
838 requires sender_to<__nest_sender<__decay_t<_Sender>>, __spawn_receiver<_Env>>
839 void spawn(_Sender&& __sndr, _Env __env = {})
840 {
841 using __opstate_t = __spawn_opstate<__nest_sender<__decay_t<_Sender>>, _Env>;
842 // this will connect and start the operation, after which the operation state is
843 // responsible for deleting itself after it completes.
844 [[maybe_unused]]
845 auto* __opstate = new __opstate_t{nest(static_cast<_Sender&&>(__sndr)),
846 static_cast<_Env&&>(__env),
847 &__impl_};
848 }
849
850 template <__movable_value _Env = env<>, sender_in<__env_t<_Env>> _Sender>
851 [[nodiscard]]

Callers 15

test_on3.cppFile · 0.80
test_when_all.cppFile · 0.80
anIntAPIMethod · 0.80
aVoidAPIMethod · 0.80
test_task.cppFile · 0.80
test_stop.cppFile · 0.80
test_dtor.cppFile · 0.80
test_spawn.cppFile · 0.80
test_empty.cppFile · 0.80

Calls

no outgoing calls

Tested by 2

anIntAPIMethod · 0.64
aVoidAPIMethod · 0.64