Executor wrapper that adds future‐returning task submission.

Synopsis

Declared in <folly/executors/FutureExecutor.h>

template<typename ExecutorImpl>
class FutureExecutor
    : public ExecutorImpl

Base Classes

Name

Description

ExecutorImpl

Member Functions

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.

Template Parameters

Name

Description

ExecutorImpl

The underlying executor type to wrap.

Created with MrDocs