boost::capy::run_async

Asynchronously launch a lazy task with memory resource and handler.

Synopsis

template<
    Executor Ex,
    class H1>
[[nodiscard]]
auto
run_async(
    Ex ex,
    std::pmr::memory_resource* mr,
    H1 h1);

Return Value

A wrapper that accepts a task<T> for immediate execution.

Parameters

Name Description

ex

The executor to execute the task on.

mr

The memory resource for frame allocation.

h1

The handler to invoke with the result (and optionally exception).

See Also

task

executor

Created with MrDocs