ter</span><span class="p">.</span><span class="nx">value</span> <span class="o">&gt;=</span> <span class="nx">maxCount</span> <span class="o">&amp;&amp;</span> <span class="nx">timer</span><span class="p">.</span><span class="nx">isRunning</span><span class="p">)</span> <span class="nx">timer</span><span class="p">.</span><span class="nf">stopTicking</span><span class="p">()</span>
    <span class="p">}</span>
  <span class="p">}</span>

  <span class="kd">function</span> <span class="nf">getOnStopFn</span>