|
59 | 59 |
|
60 | 60 | namespace boost::capy::detail { |
61 | 61 |
|
62 | | -//---------------------------------------------------------- |
63 | | -// |
64 | | -// dispatch_trampoline - cross-executor dispatch |
65 | | -// |
66 | | -//---------------------------------------------------------- |
67 | | - |
68 | 62 | /** Minimal coroutine that dispatches through the caller's executor. |
69 | 63 |
|
70 | 64 | Sits between the inner task and the parent when executors |
@@ -148,12 +142,6 @@ inline dispatch_trampoline make_dispatch_trampoline() |
148 | 142 | co_return; |
149 | 143 | } |
150 | 144 |
|
151 | | -//---------------------------------------------------------- |
152 | | -// |
153 | | -// run_awaitable_ex - with executor (executor switch) |
154 | | -// |
155 | | -//---------------------------------------------------------- |
156 | | - |
157 | 145 | /** Awaitable that binds an IoRunnable to a specific executor. |
158 | 146 |
|
159 | 147 | Stores the executor and inner task by value. When co_awaited, the |
@@ -265,12 +253,6 @@ struct [[nodiscard]] run_awaitable_ex |
265 | 253 | run_awaitable_ex& operator=(run_awaitable_ex&&) = default; |
266 | 254 | }; |
267 | 255 |
|
268 | | -//---------------------------------------------------------- |
269 | | -// |
270 | | -// run_awaitable - no executor (inherits caller's executor) |
271 | | -// |
272 | | -//---------------------------------------------------------- |
273 | | - |
274 | 256 | /** Awaitable that runs a task with optional stop_token override. |
275 | 257 |
|
276 | 258 | Does NOT store an executor - the task inherits the caller's executor |
@@ -364,12 +346,6 @@ struct [[nodiscard]] run_awaitable |
364 | 346 | run_awaitable& operator=(run_awaitable&&) = default; |
365 | 347 | }; |
366 | 348 |
|
367 | | -//---------------------------------------------------------- |
368 | | -// |
369 | | -// run_wrapper_ex - with executor |
370 | | -// |
371 | | -//---------------------------------------------------------- |
372 | | - |
373 | 349 | /** Wrapper returned by run(ex, ...) that accepts a task for execution. |
374 | 350 |
|
375 | 351 | @tparam Ex The executor type. |
@@ -505,12 +481,6 @@ class [[nodiscard]] run_wrapper_ex<Ex, InheritStopToken, void> |
505 | 481 | } |
506 | 482 | }; |
507 | 483 |
|
508 | | -//---------------------------------------------------------- |
509 | | -// |
510 | | -// run_wrapper - no executor (inherits caller's executor) |
511 | | -// |
512 | | -//---------------------------------------------------------- |
513 | | - |
514 | 484 | /** Wrapper returned by run(st) or run(alloc) that accepts a task. |
515 | 485 |
|
516 | 486 | @tparam InheritStopToken If true, inherit caller's stop token. |
@@ -629,12 +599,6 @@ class [[nodiscard]] run_wrapper<false, void> |
629 | 599 |
|
630 | 600 | namespace boost::capy { |
631 | 601 |
|
632 | | -//---------------------------------------------------------- |
633 | | -// |
634 | | -// run() overloads - with executor |
635 | | -// |
636 | | -//---------------------------------------------------------- |
637 | | - |
638 | 602 | /** Bind a task to execute on a specific executor. |
639 | 603 |
|
640 | 604 | Returns a wrapper that accepts a task and produces an awaitable. |
@@ -736,12 +700,6 @@ run(Ex ex, std::stop_token st, Alloc alloc) |
736 | 700 | std::move(ex), std::move(st), std::move(alloc)}; |
737 | 701 | } |
738 | 702 |
|
739 | | -//---------------------------------------------------------- |
740 | | -// |
741 | | -// run() overloads - no executor (inherits caller's) |
742 | | -// |
743 | | -//---------------------------------------------------------- |
744 | | - |
745 | 703 | /** Run a task with a custom stop token. |
746 | 704 |
|
747 | 705 | The task inherits the caller's executor. Only the stop token |
|
0 commit comments