folly::Executor::addWithPriority

Enqueue a function with a given priority, where 0 is the medium priority This is up to the implementation to enforce

Synopsis

Declared in <folly/Executor.h>

virtual
void
addWithPriority(
    Func func,
    int8_t priority);

Parameters

NameDescription
funcThe unit of work to enqueue.
priorityThe scheduling priority for the work.