boost::capy::run_async
Asynchronously launch a lazy task with allocator and handlers.
Synopsis
Declared in <boost/capy/ex/run_async.hpp>
template<
Executor Ex,
/* implementation-defined */ Alloc,
class H1,
class H2>
[[nodiscard]]
auto
run_async(
Ex ex,
Alloc alloc,
H1 h1,
H2 h2);
Parameters
| Name | Description |
|---|---|
ex |
The executor to execute the task on. |
alloc |
The allocator for frame allocation (copied and stored). |
h1 |
The handler to invoke with the result on success. |
h2 |
The handler to invoke with the exception on failure. |