Results of 1 - 5 of about 5 for reschedule (0.002 sec.)
- EvPeriodic::__construct — Constructs EvPeriodic watcher object | PHP 8.3 11729
- 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
... ped periodic watcher. パラメータ offset See Periodic watcher operation modes interval See Periodic watcher operation modes reschedule_cb Reschedule callback. You can pass null . See Periodic watcher operation modes callback See Watcher callbacks . data Cus ... tom data associated with the watcher. priority Watcher priority 例 例1 Periodic timer. Use reschedule callback <?php // Tick 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 second ...
-
https://man.mtool.work/php/8.3/evperiodic.construct.html
- Periodic ウォッチャーの操作モード | PHP 8.3 10387
- Periodic ウォッチャーの操作モード EvPeriodic ウォッチャーは、パラメータ offset 、 interval および reschedule_cb の設定によってさまざまなモードで動作します。 絶対時刻のタイマー 。 このモードでは、 interval = 0 そして reschedule_cb = null とな
... ステム時刻がこの時刻に達するかこの時刻を過ぎたときに実行されます。 繰り返しタイマー 。 このモードでは、 interval > 0 そして reschedule_cb = null となります。ウォッチャーは常に、 offset + N * interval ( N は何らかの整数) 経過後にタイムアウトするようにスケジュ ... 刻にコールバックをこのモードで実行しようと試みます。 時刻の飛びは気にしません。 手動再スケジュールモード 。 このモードでは、 reschedule_cb が callable になります。 interval と offset はどちらも無視します。毎回定期ウォッチャーがスケジュールされ、再スケジュール ... コールバック ( reschedule_cb ) が呼び出されます。 コールバックの最初の引数がウォッチャー、そして二番目の引数が現在時刻となります。 このコールバックは ...
-
https://man.mtool.work/php/8.3/ev.periodic-modes.html
- EvPeriodic::createStopped — Create a stopped EvPeriodic watcher | PHP 8.3 9560
- 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
... atcher automatically. パラメータ offset See Periodic watcher operation modes interval See Periodic watcher operation modes reschedule_cb Reschedule callback. You can pass null . See Periodic watcher operation modes callback See Watcher callbacks . data Cus ...
-
https://man.mtool.work/php/8.3/evperiodic.createstopped.html
- The EvPeriodic class | PHP 8.3 7445
- 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_pending ; public $ priority ; /* メソッド */ public function __construct ( float $offset , string $interval , callable $reschedule_cb , callable $callback , mixed $data = null , int $priority = 0 ) public function again (): void public function at (): f ... loat final public static function createStopped ( float $offset , float $interval , callable $reschedule_cb , callable $callback , mixed $data = null , int $priority = 0 ): EvPeriodic public function set ( float $offset , float ...
-
https://man.mtool.work/php/8.3/class.evperiodic.html
- 例 | PHP 8.3 6784
- 例 例1 タイマーのサンプル <?php // タイマーを作り、2 秒後に起動します $w1 = new EvTimer ( 2 , 0 , function () { echo "2 seconds elapsed\n" ; }); // タイマーを作って 2 秒後に起動させ、その後は // 手で止めるまで 1 秒おきに繰り返します $w2 = n
... HP_EOL ; }); Ev :: run (); ?> 例3 再スケジュールコールバックを使う定期タイマー <?php // 10.5 秒おきに繰り返します function reschedule_cb ( $watcher , $now ) { return $now + ( 10.5 . - fmod ( $now , 10.5 )); } $w = new EvPeriodic ( 0. , 0. , "reschedule_cb" ...
-
https://man.mtool.work/php/8.3/ev.examples.html
PREV
1
NEXT