Dispatcher for running tasks on the thread pool outside of a TaskGraph.
More...
#include <AsyncDispatcher.h>
|
| AsyncDispatcher (tf::Executor *executor) |
|
template<class F > |
auto | Async (F &&f) -> std::future< std::invoke_result_t< std::decay_t< F > > > |
| Run a function asynchronously, returning the eventual result in a std::future.
|
|
template<class F > |
void | SilentAsync (F &&f) |
| Run a function asynchronously without returning the result.
|
|
auto | MaxConcurrency () const -> size_t |
| Get the number of workers in the thread pool.
|
|
Dispatcher for running tasks on the thread pool outside of a TaskGraph.
The documentation for this class was generated from the following file: