| 82 | skr_task_t& operator=(skr_task_t&& other) { coroutine = other.coroutine; other.coroutine = nullptr; return *this; } |
| 83 | ~skr_task_t() { if(coroutine) coroutine.destroy(); } |
| 84 | void resume() { coroutine.resume(); } |
| 85 | bool done() const { return coroutine.done(); } |
| 86 | explicit operator bool() const { return (bool)coroutine; } |
| 87 | std::coroutine_handle<promise_type> coroutine; |