|
ORIGINAL
|
Asynchronous programming utilities with future/promise pattern. More...
#include <async.h>

Classes | |
| class | asyncWrapper< void > |
| Specialization of asyncWrapper for void results. More... | |
| class | future |
| Represents a future result of an asynchronous computation. More... | |
| class | future< void > |
| Specialization of future for void results. More... | |
| class | promise |
| Represents a promise of a future result. More... | |
| class | promise< void, Callback > |
| Specialization of promise for void results. More... | |
Static Public Member Functions | |
| template<typename Callback , typename... Args> | |
| static auto | makePromise (Callback &&c, Args &&... args) |
| Creates a promise from a callable and arguments. | |
| template<typename Callback , typename... Args> | |
| static auto | get (Callback &&c, Args &&... args) |
| Executes a callable asynchronously and gets the result. | |
Asynchronous programming utilities with future/promise pattern.
Provides a thread-safe implementation of the future/promise pattern for asynchronous computation. Supports both value-returning and void functions.
|
static |
Executes a callable asynchronously and gets the result.
| Callback | The type of the callable |
| Args | The types of the arguments |
| c | Callable to execute |
| args | Arguments to forward to the callable |
| std::exception | if the computation threw an exception |
|
static |
Creates a promise from a callable and arguments.
| Callback | The type of the callable |
| Args | The types of the arguments |
| c | Callable to execute asynchronously |
| args | Arguments to forward to the callable |