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

Function async_answer2

examples/hello_coro.cpp:34–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33template <sender S1, sender S2>
34auto async_answer2(S1 s1, S2 s2) -> stdexec::task<std::optional<int>>
35{
36 co_return co_await stopped_as_optional(async_answer(s1, s2));
37}
38
39// tasks have an associated stop token
40auto async_stop_token() -> stdexec::task<std::optional<stdexec::inplace_stop_token>>

Callers 1

mainFunction · 0.85

Calls 1

async_answerFunction · 0.85

Tested by

no test coverage detected