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

Function isTokenStoppable

test/stdexec/algos/adaptors/test_stop_when.cpp:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 auto isTokenStoppable()
52 {
53 return ex::read_env(ex::get_stop_token)
54 | ex::then([](auto token) noexcept { return token.stop_possible(); });
55 }
56
57 TEST_CASE("stop-when substitutes its token when the receiver's token is unstoppable",
58 "[adaptors][stop-when]")

Callers 1

test_stop_when.cppFile · 0.85

Calls 2

thenFunction · 0.85
stop_possibleMethod · 0.45

Tested by

no test coverage detected