Executor wrapper that adds future-returning task submission.
Declared in <folly/executors/FutureExecutor.h>
template<typename ExecutorImpl>
class FutureExecutor
: public ExecutorImpl
| Name | Description |
|---|---|
ExecutorImpl |
| Name | Description |
|---|---|
FutureExecutor [constructor] | Constructs the wrapper, forwarding all arguments to the wrapped executor. |
addFuture | Adds a function that returns a Future<T> and returns its result future. |
addFuture | Adds a function that returns a non-future value and returns its result future. |
| Name | Description |
|---|---|
| ExecutorImpl | The underlying executor type to wrap. |