title: Cancelling Akka scheduler
body: <p>Just wanted to know what's the best way to cancel a schedule. </p>
  
  <p>At the moment I use a <code>var</code> linked to the scheduler task, and cancel it like so:</p>
  
  <pre><code>private var scheduterLink: akka.actor.Cancellable = null
  
  def receive = {
      case Test =&gt; {
         if(...){scheduterLink.cancel}    
  }
  </code></pre>
  
  <p>Any more examples how to do it without <strong>var</strong> links?</p>
  
  <p>Thanks!</p>