Ctor and rule of 5 for proper handle management
| 88 | |
| 89 | // Ctor and rule of 5 for proper handle management |
| 90 | explicit Task(std::coroutine_handle<promise_type> hnd) : handle(hnd) {} |
| 91 | Task(Task&& other) noexcept : handle(std::exchange(other.handle, {})) {} |
| 92 | Task& operator=(Task&& other) noexcept { |
| 93 | if (this != &other) { |
nothing calls this directly
no outgoing calls
no test coverage detected