boost::capy::this_coro::executor
Tag object that yields the current executor when awaited.
Synopsis
Declared in <boost/capy/ex/this_coro.hpp>
inline constexpr executor_tag executor = {};
Description
Use co_await this_coro::executor inside a coroutine whose promise type supports executor access (e.g., inherits from io_awaitable_promise_base). The returned executor reflects the executor this coroutine is bound to.
Behavior
-
If no executor was set, returns a default‐constructed `executor_ref` (where `operator bool()` returns `false`).
-
This operation never suspends; `await_ready()` always returns `true`.