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

Function __stok_env

include/exec/start_now.hpp:40–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 namespace __start_now
39 {
40 constexpr auto __stok_env(STDEXEC::inplace_stop_source& __source)
41 {
42 return env_from([&](STDEXEC::get_stop_token_t) noexcept { return __source.get_token(); });
43 }
44
45 inline constexpr auto __mkenv =
46 []<class _Env>(_Env&& __env, STDEXEC::inplace_stop_source& __source)

Callers 1

start_now.hppFile · 0.85

Calls 2

env_fromClass · 0.85
get_tokenMethod · 0.45

Tested by

no test coverage detected