@viktorklang and @bantonsson, could you in particular have a look at this part: is this how to make a timer thread reliable? Or is it an atrocity for which we’ll burn in JVM hell?

Apart from this I incorporated all feedback so far and wrote some docs.