folly::ThreadPoolExecutor::forEachTaskObserver

Invokes a function for each registered task observer.

Synopsis

Declared in <folly/executors/ThreadPoolExecutor.h>

template<class F>
void
forEachTaskObserver(F&& f) const;

Template Parameters

NameDescription
FThe callable type invoked with each observer.

Parameters

NameDescription
fThe function invoked with each task observer.