title: Stopping a Node.js callback by clearing setInterval
body: <p>Need a call on this situation. If I have this function:</p>
  
  <pre><code>var timerID;
  function playBack(client,log){
      if (timerID) clearInterval(timerID);
      timerID = setInterval(function(){
          var buffer = [],
              numberOfLogLines = log.length;
          while(numberOfLogLines &gt; 0){
              var l = log.pop().trim(); // pull from the top
              buffer.push(l);
              if(l.split(",")[0] === "$TIMETOSEND"){ //flag for the timming signal
                  client.send("{\"playback\":" + JSON.stringify(buffer) + "}");
                  break;
              }
          }
      },playBackSpeed);
  }
  </code></pre>
  
  <p>and call</p>
  
  <blockquote>
    <p>clearInterval(timerID)</p>
  </blockquote>
  
  <p>at some other point does this stop the callback? I am trying to create a pause/play situation which to start the playBack again I would invoke the playBack(client,log) again to restart. Seems to work but, I am wondering does clearing the interval stop the callBack. I don't want to create a log jam for the case of the heavy "pause/play" happy people.</p>