folly::VirtualExecutor::add

add overloads

Synopses

Declared in <folly/Executor.h>

Schedules a function to run on the backing executor.

virtual
void
add(Func f) override;
» more...

Enqueue a function to be executed by this executor. This and all variants must be threadsafe.

virtual
void
add(Func func) = 0;
» more...

Parameters

NameDescription
fThe function to execute.
funcThe unit of work to enqueue.