folly::EventBase::getNumLoopCallbacks

Returns the number of loop callbacks pending execution. If this is non-zero, loopOnce() is guaranteed to run the callbacks without blocking.

Synopsis

Declared in <folly/io/async/EventBase.h>

size_t
getNumLoopCallbacks() const;

Return Value

The number of pending loop callbacks.