Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 1221

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The Swoole\Timer class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="swoole-table.valid.html">Swoole\Table::valid</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swoole-timer.after.html">Swoole\Timer::after</a></div>
 <div class="up"><a href="book.swoole.html">Swoole</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.swoole-timer" class="reference">

 <h1 class="title">The Swoole\Timer class</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 5 &gt;= 5.2.0, PHP 7, PECL swoole &gt;= 1.9.0)</p>


  <div class="section" id="swoole-timer.intro">
   <h2 class="title">Introduction</h2>
   <p class="para">

   </p>
  </div>


  <div class="section" id="swoole-timer.synopsis">
   <h2 class="title">Class synopsis</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">Swoole\Timer</strong>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">void</span> <span class="methodname"><a href="swoole-timer.after.html" class="methodname">after</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$after_time_ms</code></span>
   , <span class="methodparam"><span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$callback</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">void</span> <span class="methodname"><a href="swoole-timer.clear.html" class="methodname">clear</a></span>
    ( <span class="methodparam"><span class="type">integer</span> <code class="parameter">$timer_id</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">boolean</span> <span class="methodname"><a href="swoole-timer.exists.html" class="methodname">exists</a></span>
    ( <span class="methodparam"><span class="type">integer</span> <code class="parameter">$timer_id</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">void</span> <span class="methodname"><a href="swoole-timer.tick.html" class="methodname">tick</a></span>
    ( <span class="methodparam"><span class="type">integer</span> <code class="parameter">$interval_ms</code></span>
   , <span class="methodparam"><span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$callback</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$param</code></span>
  ] )</div>

   }</div>


  </div>

 </div>

 





























<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="swoole-timer.after.html">Swoole\Timer::after</a> — Trigger a callback function after a period of time.</li><li><a href="swoole-timer.clear.html">Swoole\Timer::clear</a> — Delete a timer by timer ID.</li><li><a href="swoole-timer.exists.html">Swoole\Timer::exists</a> — Check if a timer is existed.</li><li><a href="swoole-timer.tick.html">Swoole\Timer::tick</a> — Repeats a given function at every given time-interval.</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="swoole-table.valid.html">Swoole\Table::valid</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swoole-timer.after.html">Swoole\Timer::after</a></div>
 <div class="up"><a href="book.swoole.html">Swoole</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>