Pyrogenesis
trunk
|
Corresponds somewhat to std::packaged_task. More...
#include <Future.h>
Public Member Functions | |
PackagedTask ()=delete | |
PackagedTask (std::shared_ptr< typename Future< ResultType >::SharedState > ss) | |
void | operator() () |
void | Cancel () |
Protected Attributes | |
std::shared_ptr< typename Future< ResultType >::SharedState > | m_SharedState |
Static Private Attributes | |
static constexpr bool | VoidResult = std::is_same_v<ResultType, void> |
Corresponds somewhat to std::packaged_task.
Like packaged_task, this holds a function acting as a promise. This type is mostly just the shared state and the call operator, handling the promise & continuation logic.
|
delete |
|
inline |
|
inline |
|
inline |
|
protected |
|
staticprivate |