<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.swoole-timer.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'swoole-timer.clear.php',
    1 => 'Swoole\\Timer::clear',
    2 => 'Delete a timer by ID',
  ),
  'up' => 
  array (
    0 => 'class.swoole-timer.php',
    1 => 'Swoole\\Timer',
  ),
  'prev' => 
  array (
    0 => 'swoole-timer.after.php',
    1 => 'Swoole\\Timer::after',
  ),
  'next' => 
  array (
    0 => 'swoole-timer.clearall.php',
    1 => 'Swoole\\Timer::clearAll',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/swoole/swoole/timer/clear.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="swoole-timer.clear" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Swoole\Timer::clear</h1>
  <p class="verinfo">(PECL swoole &gt;= 1.9.0)</p><p class="refpurpose"><span class="refname">Swoole\Timer::clear</span> &mdash; <span class="dc-title">Delete a timer by ID</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-swoole-timer.clear-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="modifier">function</span> <span class="methodname"><strong>Swoole\Timer::clear</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$timer_id</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Deletes the timer with the given ID. Only timers created by the current
   process can be removed; timers belonging to other processes are not visible
   here.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-swoole-timer.clear-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">timer_id</code></dt>
    <dd>
     <p class="simpara">
      The timer ID returned by <span class="methodname"><a href="swoole-timer.tick.php" class="methodname">Swoole\Timer::tick()</a></span> or
      <span class="methodname"><a href="swoole-timer.after.php" class="methodname">Swoole\Timer::after()</a></span>.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-swoole-timer.clear-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   Başarı durumunda <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner.
   <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> is returned when no timer with this ID exists in the current
   process, or when the ID refers to an internal timer.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-swoole-timer.clear-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 <span class="function"><strong>Swoole\Timer::clear()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><pre><code style="color: #000000"><span style="color: #0000BB">&lt;?php
$timer_id </span><span style="color: #007700">= </span><span style="color: #0000BB">Swoole\Timer</span><span style="color: #007700">::</span><span style="color: #0000BB">after</span><span style="color: #007700">(</span><span style="color: #0000BB">1000</span><span style="color: #007700">, function () {
    echo </span><span style="color: #DD0000">"never printed\n"</span><span style="color: #007700">;
});
</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">Swoole\Timer</span><span style="color: #007700">::</span><span style="color: #0000BB">clear</span><span style="color: #007700">(</span><span style="color: #0000BB">$timer_id</span><span style="color: #007700">));
</span><span style="color: #0000BB">?&gt;</span></code></pre></div>
   </div>

   <div class="example-contents"><p>
Yukarıdaki örneğin çıktısı:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">bool(true)</pre>
</div>
   </div>
  </div>
 </div>

</div><?php manual_footer($setup); ?>