Add 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)

Arguments

run

A function to be run in each loop iteration.

init

A function to be run once in the first iteration.