[#util-ImmediateTaskRunner] = xref:util.adoc[util]::ImmediateTaskRunner :relfileprefix: ../ :mrdocs: Task runner that processes each callback synchronously on insertion. == Synopsis Declared in `<util/task_runner.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ImmediateTaskRunner : public xref:util/TaskRunnerInterface.adoc[TaskRunnerInterface] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:util/TaskRunnerInterface.adoc[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 [cols="1,4"] |=== | Name| Description | xref:util/ImmediateTaskRunner/flush.adoc[`flush`] [.small]#[virtual]# | No‐op; there are never pending events to flush. | xref:util/ImmediateTaskRunner/insert.adoc[`insert`] [.small]#[virtual]# | Runs the callback immediately on the calling thread. | xref:util/ImmediateTaskRunner/size.adoc[`size`] [.small]#[virtual]# | Reports the number of pending events. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#