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

Method spawn_future

include/exec/async_scope.hpp:851–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

849
850 template <__movable_value _Env = env<>, sender_in<__env_t<_Env>> _Sender>
851 [[nodiscard]]
852 auto spawn_future(_Sender&& __sndr, _Env __env = {}) -> __future_t<_Sender, _Env>
853 {
854 using __state_t = __future_state<__nest_sender<__decay_t<_Sender>>, _Env>;
855 auto __state = std::make_unique<__state_t>(nest(static_cast<_Sender&&>(__sndr)),
856 static_cast<_Env&&>(__env),
857 &__impl_);
858 return __future_t<_Sender, _Env>{std::move(__state)};
859 }
860
861 [[nodiscard]]
862 constexpr auto get_stop_source() noexcept -> inplace_stop_source&

Callers 8

test_on3.cppFile · 0.80
threadMethod · 0.80
threadMethod · 0.80
threadMethod · 0.80
threadMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected