title: How to make Timer.periodic cancel itself when a condition is reached?
body: <p><code>Timer.periodic()</code> is great to have a function repeatedly execute, but is it possible to have the the timer cancel itself if an arbitrary condition is reached outside the function being executed by the timer?</p>