title: Run a function periodically in Scala
body: <p>I want to call an arbitrary function every <code>n</code> seconds. Basically I want something identical to <code>SetInterval</code> from Javascript. How can I achieve this in Scala?</p>