folly::EventBase::FunctionLoopCallback

Loop callback that wraps and owns a folly::Function.

Synopsis

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

class FunctionLoopCallback
    : public LoopCallback

Base Classes

NameDescription
LoopCallbackA callback interface to use with runInLoop()

Member Functions

NameDescription
FunctionLoopCallback [constructor]Constructs the callback from a function.
cancelLoopCallback Cancels the callback so it will not run.
isLoopCallbackScheduled Returns whether the callback is scheduled to run.
runLoopCallback [virtual]Runs the wrapped function and deletes this callback.