folly::FutureExecutor

Executor wrapper that adds future-returning task submission.

Synopsis

Declared in <folly/executors/FutureExecutor.h>

template<typename ExecutorImpl>
class FutureExecutor
    : public ExecutorImpl

Base Classes

NameDescription
ExecutorImpl

Member Functions

NameDescription
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.

Template Parameters

NameDescription
ExecutorImplThe underlying executor type to wrap.