title: Executing a function with a timeout
body: <p>What would be an idiomatic way of executing a function within a time limit? Something like,</p>
  
  <pre><code>(with-timeout 5000
   (do-somthing))
  </code></pre>
  
  <p>Unless do-something returns within 5000 throw an exception or return nil.</p>
  
  <p>EDIT: before someone points it out there is,</p>
  
  <p><a href="https://stackoverflow.com/questions/1683680/clojure-with-timeout-macro">clojure (with-timeout ... macro)</a></p>
  
  <p>but with that the future keeps executing that does not work in my case.</p>