services.RdAdd or a service to the kernel, i.e. a function that is called in each iteration of the kernel event loop.
add_service(run, init = NULL)
remove_service(run)A function to be run in each loop iteration.
A function to be run once in the first iteration.