MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / when_any_context

Method when_any_context

source/results/impl/consumer_context.cpp:68–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66const result_state_base* when_any_context::k_done_processing = nullptr;
67
68when_any_context::when_any_context(coroutine_handle<void> coro_handle) noexcept : m_status(k_processing), m_coro_handle(coro_handle) {
69 assert(static_cast<bool>(coro_handle));
70 assert(!coro_handle.done());
71}
72
73bool when_any_context::any_result_finished() const noexcept {
74 const auto status = m_status.load(std::memory_order_acquire);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected