Results of 1 - 10 of about 18 for EvPeriodic (0.002 sec.)
- EvPeriodic::createStopped — Create a stopped EvPeriodic watcher | PHP 8.3 11547
- EvPeriodic::createStopped (PECL ev >= 0.2.0) EvPeriodic::createStopped — Create a stopped EvPeriodic watcher 説明 final public static function EvPeriodic::createStopped ( float $offset , float $interval , callable $reschedule_cb , callable
... $callback , mixed $data = null , int $priority = 0 ): EvPeriodic Create EvPeriodic object. Unlike EvPeriodic::__construct() this method doesn't start the watcher automatically. パラメータ ... es callback See Watcher callbacks . data Custom data associated with the watcher. priority Watcher priority 戻り値 Returns EvPeriodic watcher object on success. 参考 EvPeriodic::__construct() - Constructs EvPeriodic watcher object EvTimer::createStopped() ...
-
https://man.mtool.work/php/8.3/evperiodic.createstopped.html
- The EvPeriodic class | PHP 8.3 11461
- The EvPeriodic class (PECL ev >= 0.2.0) はじめに Periodic watchers are also timers of a kind, but they are very versatile. Unlike EvTimer , EvPeriodic watchers are not based on real time(or relative time, the physical time that passes) but
... is that wall clock time can run faster or slower than real time, and time jumps are not uncommon(e.g. when adjusting it). EvPeriodic watcher can be configured to trigger after some specific point in time. For example, if an EvPeriodic watcher is configure ... with later time-out values (but this is no longer true when a callback calls EvLoop::run() recursively). クラス概要 class EvPeriodic extends EvWatcher { /* プロパティ */ public $ offset ; public $ interval ; /* 継承したプロパティ */ public $ is_active ; p ... float $offset , float $interval , callable $reschedule_cb , callable $callback , mixed $data = null , int $priority = 0 ): EvPeriodic public function set ( float $offset , float $interval ): void /* 継承したメソッド */ public function EvWatcher::clear (): ...
-
https://man.mtool.work/php/8.3/class.evperiodic.html
- EvPeriodic::__construct — Constructs EvPeriodic watcher object | PHP 8.3 11358
- EvPeriodic::__construct (PECL ev >= 0.2.0) EvPeriodic::__construct — Constructs EvPeriodic watcher object 説明 public function EvPeriodic::__construct ( float $offset , string $interval , callable $reschedule_cb , callable $callback , mixed
... $data = null , int $priority = 0 ) Constructs EvPeriodic watcher object and starts it automatically. EvPeriodic::createStopped() method creates stopped periodic watcher. パラメータ ... ck each 10.5 seconds function reschedule_cb ( $watcher , $now ) { return $now + ( 10.5 - fmod ( $now , 10.5 )); } $w = new EvPeriodic ( 0. , 0. , "reschedule_cb" , function ( $w , $revents ) { echo time (), PHP_EOL ; }); Ev :: run (); ?> 例2 Periodic timer ... . Tick every 10.5 seconds starting at now <?php // Tick every 10.5 seconds starting at now $w = new EvPeriodic ( fmod ( Ev :: now (), 10.5 ), 10.5 , NULL , function ( $w , $revents ) { echo time (), PHP_EOL ; }); Ev :: run (); ?> 例3 ...
-
https://man.mtool.work/php/8.3/evperiodic.construct.html
- EvLoop::periodic — Creates EvPeriodic watcher object associated with the curren... 10723
- EvLoop::periodic (PECL ev >= 0.2.0) EvLoop::periodic — Creates EvPeriodic watcher object associated with the current event loop instance 説明 final public function EvLoop::periodic ( float $offset , float $interval , callable $callback , mi
... xed $data = null , int $priority = 0 ): EvPeriodic Creates EvPeriodic watcher object associated with the current event loop instance パラメータ All parameters have the same ... meaning as for EvPeriodic::__construct() 戻り値 Returns EvPeriodic object on success. 参考 EvPeriodic::__construct() - Constructs EvPeriodic watcher ...
-
https://man.mtool.work/php/8.3/evloop.periodic.html
- EvPeriodic::set — Configures the watcher | PHP 8.3 10397
- EvPeriodic::set (PECL ev >= 0.2.0) EvPeriodic::set — Configures the watcher 説明 public function EvPeriodic::set ( float $offset , float $interval ): void (Re-)Configures EvPeriodic watcher パラメータ offset The same meaning as for EvPeriodic
... ic::__construct() . See Periodic watcher operation modes interval The same meaning as for EvPeriodic::__construct() . See Periodic watcher operation modes 戻り値 値を返しません。 他のマニュアルの関連ページ Python type ...
-
https://man.mtool.work/php/8.3/evperiodic.set.html
- EvPeriodic::at — Returns the absolute time that this watcher is supposed to tri... 9437
- EvPeriodic::at (PECL ev >= 0.2.0) EvPeriodic::at — Returns the absolute time that this watcher is supposed to trigger next 説明 public function EvPeriodic::at (): float When the watcher is active, returns the absolute time that this watcher
... is supposed to trigger next. This is not the same as the offset argument to EvPeriodic::set() or EvPeriodic::__construct() , but indeed works even in interval mode. パラメータ この関数にはパラメータはありません ...
-
https://man.mtool.work/php/8.3/evperiodic.at.html
- Ev | PHP 8.3 8767
- Ev はじめに この拡張モジュールは、 » libev ライブラリへのインターフェイスを提供します。 このライブラリは、C で書かれたハイパフォーマンスで高機能なイベントループです。 注意 : この拡張モジュールは Windows 環境では利用できません。 Libev はイベ
... current time by querying the kernel, updating the time returned by EvLoop::now in the progress EvLoop::periodic — Creates EvPeriodic watcher object associated with the current event loop instance EvLoop::prepare — Creates EvPrepare watcher object associat ... bject associated with the current event loop instance EvLoop::verify — Performs internal consistency checks(for debugging) EvPeriodic — The EvPeriodic class EvPeriodic::again — Simply stops and restarts the periodic watcher again EvPeriodic::at — Returns t ... he absolute time that this watcher is supposed to trigger next EvPeriodic::__construct — Constructs EvPeriodic watcher object EvPeriodic::createStopped — Create a stopped EvPeriodic watcher EvPeri ...
-
https://man.mtool.work/php/8.3/book.ev.html
- EvPeriodic::again — Simply stops and restarts the periodic watcher again | PHP ... 8510
- EvPeriodic::again (PECL ev >= 0.2.0) EvPeriodic::again — Simply stops and restarts the periodic watcher again 説明 public function EvPeriodic::again (): void Simply stops and restarts the periodic watcher again. This is only useful when att
...
-
https://man.mtool.work/php/8.3/evperiodic.again.html
- Periodic ウォッチャーの操作モード | PHP 8.3 7772
- Periodic ウォッチャーの操作モード EvPeriodic ウォッチャーは、パラメータ offset 、 interval および reschedule_cb の設定によってさまざまなモードで動作します。 絶対時刻のタイマー 。 このモードでは、 interval = 0 そして reschedule_cb = null とな
... その後繰り返します。時刻の飛びは気にしません。 これを使うと、システムの時刻に流されないタイマーを作れます。 <?php $hourly = EvPeriodic ( 0 , 3600 , NULL , function () { echo "once per hour\n" ; }); ?> これは、必ずしも 3600 秒おきにイベントが発生することを意 ... 味するものではありません。 システムの時刻が一時間経過するごとにコールバックが呼ばれるというものです。 EvPeriodic は、 time = offset ( mod interval ) となる次の時刻にコールバックをこのモードで実行しようと試みます。 時刻の飛びは気にしませ ... 秒おきに繰り返します function reschedule_cb ( $watcher , $now ) { return $now + ( 10.5 . - fmod ( $now , 10.5 )); } $w = new EvPeriodic ( 0. , 0. , "reschedule_cb" , function ( $w , $revents ) { echo time (), PHP_EOL ; }); Ev :: run (); ?> 他のマニュアルの関 ...
-
https://man.mtool.work/php/8.3/ev.periodic-modes.html
- The EvLoop class | PHP 8.3 7446
- The EvLoop class (PECL ev >= 0.2.0) はじめに Represents an event loop that is always distinct from the default loop . Unlike the default loop , it cannot handle EvChild watchers. Having threads we have to create a loop per thread, and use t
... ublic function periodic ( float $offset , float $interval , callable $callback , mixed $data = null , int $priority = 0 ): EvPeriodic final public function prepare ( callable $callback , mixed $data = null , int $priority = 0 ): EvPrepare public function r ... ime collecting EvIo events, so more events can be handled per iteration, at the cost of increasing latency. Timeouts (both EvPeriodic and EvTimer ) will not be affected. Setting this to a non-zero value will introduce an additional sleep() call into most l ... current time by querying the kernel, updating the time returned by EvLoop::now in the progress EvLoop::periodic — Creates EvPeriodic watcher object associated with the current event loop instance EvLoop::prepare — Creates EvPrepare watcher object associat ...
-
https://man.mtool.work/php/8.3/class.evloop.html