Taskeng or tasklet engine is an engine to run simple tasklets asynchronously. There are internal workqueues served by threads to run user defined functions (tasklets) and triggered by events from libev eventloops.
To run function periodically you can just type
{% tabs %} {% tab title="C++" %}
fflow::add_periodic<void>(([&](void) -> void {
// user code goes here
// ...
}), 0.000001, 0.000001);{% endtab %} {% endtabs %}
To post function to workqueue
{% tabs %} {% tab title="C++" %}
fflow::post_function<void>([&](void) -> void {
// user code goes here
// ...
});{% endtab %} {% endtabs %}