| 38 | std::list<std::coroutine_handle<>> _tasks{}; |
| 39 | |
| 40 | bool schedule() |
| 41 | { |
| 42 | auto task = _tasks.front(); |
| 43 | _tasks.pop_front(); |
| 44 | |
| 45 | if(not task.done()) { task.resume(); } |
| 46 | |
| 47 | return not _tasks.empty(); |
| 48 | } |
| 49 | |
| 50 | auto suspend() { return awaiter{*this}; } |
| 51 | }; |