| 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, {}); |