[#SerialTaskRunner-insert]
= xref:SerialTaskRunner.adoc[SerialTaskRunner]::insert
:relfileprefix: ../
:mrdocs:

Add a callback to be executed&period; Callbacks are executed serially and memory is release&hyphen;acquire consistent between callback executions&period; Practically, this means that callbacks can behave as if they are executed in order by a single thread&period;

== Synopsis

Declared in `&lt;scheduler&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f951cad8ee8)&rsqb;&rsqb;
virtual
void
insert(std::function&lt;void()&gt; func) override;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *func*
| The callback to enqueue for serial execution&period;
|===


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