[#SerialTaskRunner-insert] = xref:SerialTaskRunner.adoc[SerialTaskRunner]::insert :relfileprefix: ../ :mrdocs: Add a callback to be executed. Callbacks are executed serially and memory is release‐acquire consistent between callback executions. Practically, this means that callbacks can behave as if they are executed in order by a single thread. == Synopsis Declared in `<scheduler.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e20c05ce8)]] virtual void insert(std::function<void()> func) override; ---- == Parameters [cols="1,4"] |=== | Name| Description | *func* | The callback to enqueue for serial execution. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#