| 73 | }; |
| 74 | |
| 75 | inline auto enqueueCoroutineToDetachedThread() noexcept { |
| 76 | struct Awaiter { |
| 77 | bool await_ready() const noexcept { return false; } |
| 78 | // Suspend and enqueue coroutine continuation onto the thread |
| 79 | void await_suspend(std::coroutine_handle<> coroutine) noexcept { std::thread{coroutine}.detach(); } |
| 80 | void await_resume() const noexcept {} |
| 81 | }; |
| 82 | return Awaiter{}; |
| 83 | } |
| 84 | |
| 85 | template <typename data_t> class TaskPromiseBase { |
| 86 | public: |
nothing calls this directly
no outgoing calls
no test coverage detected