[#util-ImmediateTaskRunner]
= xref:util.adoc[util]::ImmediateTaskRunner
:relfileprefix: ../
:mrdocs:

Task runner that processes each callback synchronously on insertion&period;

== Synopsis

Declared in `&lt;util&sol;task&lowbar;runner&period;h&gt;`

[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&period; Another threaded, serial implementation using a queue is available in the scheduler module&apos;s SerialTaskRunner&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:util/ImmediateTaskRunner/flush.adoc[`flush`]  [.small]#[virtual]#
| No&hyphen;op&semi; there are never pending events to flush&period;
| xref:util/ImmediateTaskRunner/insert.adoc[`insert`]  [.small]#[virtual]#
| Runs the callback immediately on the calling thread&period;
| xref:util/ImmediateTaskRunner/size.adoc[`size`]  [.small]#[virtual]#
| Reports the number of pending events&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
