util::ImmediateTaskRunner

Task runner that processes each callback synchronously on insertion.

Synopsis

Declared in <util/task_runner.h>

class ImmediateTaskRunner
    : public TaskRunnerInterface

Base Classes

NameDescription
TaskRunnerInterfaceThis header provides an interface and simple implementation for a task runner. Another threaded, serial implementation using a queue is available in the scheduler module's SerialTaskRunner.

Member Functions

NameDescription
flush [virtual]No-op; there are never pending events to flush.
insert [virtual]Runs the callback immediately on the calling thread.
size [virtual]Reports the number of pending events.