boost::capy::run

Run a task with stop token and standard allocator.

Synopsis

Declared in <boost/capy/ex/run.hpp>

template</* implementation-defined */ Alloc>
[[nodiscard]]
auto
run(
    std::stop_token st,
    Alloc alloc);

Description

The task inherits the caller's executor.

Return Value

A wrapper that accepts a task for execution.

Parameters

Name Description

st

The stop token for cooperative cancellation.

alloc

The allocator for frame allocation.

Created with MrDocs