boost::capy::run_async
Asynchronously launch a lazy task with custom memory resource.
Synopsis
Declared in <boost/capy/ex/run_async.hpp>
template<Executor Ex>
[[nodiscard]]
auto
run_async(
Ex ex,
std::pmr::memory_resource* mr);
Description
The memory resource is used for coroutine frame allocation. The caller is responsible for ensuring the memory resource outlives all tasks.
Parameters
| Name | Description |
|---|---|
ex |
The executor to execute the task on. |
mr |
The memory resource for frame allocation. |