How to achieve behavior of setTimeout in Elm : <p>I'm writing a web game in Elm with lot of time-dependent events and I'm looking for a way to schedule an event at a specific time delay.</p>

<p>In JavaScript I used <code>setTimeout(f, timeout)</code>, which obviously worked very well, but - for various reasons - I want to avoid JavaScript code and use Elm alone. </p>

<p>I'm aware that I can <code>subscribe</code> to <code>Tick</code> at specific interval and recieve clock ticks, but this is not what I want - my delays have no reasonable common denominator (for example, two of the delays are 30ms and 500ms), and I want to avoid having to handle a lot of unnecessary ticks.</p>

<p>I also came across <code>Task</code> and <code>Process</code> - it seems that by using them I am somehow able to what I want with <code>Task.perform failHandler successHandler (Process.sleep Time.second)</code>. </p>

<p>This works, but is not very intuitive - my handlers simply ignore all possible input and send same message. Moreover, I do not expect the timeout to ever fail, so creating the failure handler feels like feeding the library, which is not what I'd expect from such an elegant language. </p>

<p>Is there something like <code>Task.delayMessage time message</code> which would do exactly what I need to (send me a copy of its message argument after specified time), or do I have to make my own wrapper for it?</p>
