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

Method ~coroutine_handle_functor

source/task.cpp:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 coroutine_handle_functor(coroutine_handle_functor&& rhs) noexcept : m_coro_handle(std::exchange(rhs.m_coro_handle, {})) {}
31
32 ~coroutine_handle_functor() noexcept {
33 if (static_cast<bool>(m_coro_handle)) {
34 m_coro_handle.destroy();
35 }
36 }
37
38 void execute_destroy() noexcept {
39 auto coro_handle = std::exchange(m_coro_handle, {});

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected