statman
statman copied to clipboard
Better polling
Have a supervisor for pollers. For each function to poll, start a process under this supervisor.
Let polling functions return a state together with their updates. A polling function can store the value of a counter in the state and at next poll store the new value. The derivative can be returned to statman.