Task runner that processes each callback synchronously on insertion.

Synopsis

Declared in <util/task_runner.h>

class ImmediateTaskRunner
    : public TaskRunnerInterface

Base Classes

Name

Description

TaskRunnerInterface

This 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

Name

Description

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.

Created with MrDocs