Agents 0.0.2
Edge AI Agents SDK
|
Provide a future-based fallback for Task. More...
#include <coroutine_utils.h>
Public Member Functions | |
Task (std::function< std::future< T >()> func) | |
Constructor. | |
std::future< T > | get_future () |
Get the future. | |
Provide a future-based fallback for Task.
T | The type of the result of the task |
|
inline |
Constructor.
func | The function to get the future |
Constructor
|
inline |
Get the future.