boost::capy::io_awaitable_promise_base::set_environment
Store a pointer to the execution environment.
Synopsis
void
set_environment(io_env const* env) noexcept;
Description
Call this from your coroutine type's await_suspend overload to make the environment available via co_await this_coro::environment. The pointed‐to io_env must outlive this coroutine.
Parameters
| Name | Description |
|---|---|
env |
The environment to store. |
Created with MrDocs