title: Scala Actors: Is there a built-in way to stop/ interrupt an actor?
body: <p>In Java I have a hobby with thread, for example:</p>
  
  <pre><code>Thread thread = new Thread() {
  
    @Override
    public void run() {
      //use this while loop, I can stop/ interrupt the thread when I want
      while (!isInterrupted()) {
        //...
      }
    }
  };
  thread.start();
  </code></pre>
  
  <p>and then, when I want to stop/ interrupt my thread:</p>
  
  <pre><code>thread.interrupt();
  </code></pre>
  
  <p>So my question is: is there a built-in way (a field/ method/ function...) in Scala that I can stop/ interrupt an actor?</p>
  
  <p>This is my background: I'm new to Scala, I'm really learning to code. And I'm finding my best way between actor and thread. From my point of view, I like the new approach - actor.</p>
  
  <p>P.S: Sorry for my English...</p>