boost::capy::deferred_operation
Concept for a deferred operation that produces a value.
Synopsis
Declared in <boost/capy/async_result.hpp>
template<
class Op,
class T>
concept deferred_operation = std::invocable<Op, std::function<void(T)>>;
Description
A deferred operation is a callable that accepts a completion handler. When invoked, it initiates an asynchronous operation and calls the handler with the result when complete.
Template Parameters
| Name | Description |
|---|---|
Op |
The operation type. |
T |
The result type. |
Created with MrDocs