Results of 1 - 10 of about 151 for Timer (0.002 sec.)
- The Swoole\Timer class 8646
- « Swoole\Table::valid Swoole\Timer::after » PHP Manual Swoole The Swoole\Timer class 検索 The Swoole\Timer class (PECL swoole >= 1.9.0) はじめに Millisecond precision timer. The underlying implementation is based on epoll_wait and setitimer
... , using a min-heap data structure that supports adding a large number of timers. In synchronous I/O processes, such as the Manager and TaskWorker processes, it is implemented using setitimer and signal ... /O processes, it is implemented using the timeout of epoll_wait/kevent/poll/select. The underlying system does not support timers with a delay of 0 ; values below 1 millisecond emit an E_WARNING and the call fails. This differs from languages such as ... ::defer() may be used to achieve similar functionality. <?php Swoole\Event :: defer (function () { echo "hello\n" ; }); ?> Timer Correction: The execution time of the timer callback function does not affect the timing of the next timer execution. For ...
-
https://man.mtool.work/php/8.3/class.swoole-timer.html
- The Swoole\Timer class 8646
- « Swoole\Table::valid Swoole\Timer::after » PHP Manual Swoole The Swoole\Timer class 検索 The Swoole\Timer class (PECL swoole >= 1.9.0) はじめに Millisecond precision timer. The underlying implementation is based on epoll_wait and setitimer
... , using a min-heap data structure that supports adding a large number of timers. In synchronous I/O processes, such as the Manager and TaskWorker processes, it is implemented using setitimer and signal ... /O processes, it is implemented using the timeout of epoll_wait/kevent/poll/select. The underlying system does not support timers with a delay of 0 ; values below 1 millisecond emit an E_WARNING and the call fails. This differs from languages such as ... ::defer() may be used to achieve similar functionality. <?php Swoole\Event :: defer (function () { echo "hello\n" ; }); ?> Timer Correction: The execution time of the timer callback function does not affect the timing of the next timer execution. For ...
-
https://man.mtool.work/php/8.3/class.swoole-timer.html
- Get information about a timer. 8553
- « Swoole\Timer::exists Swoole\Timer::list » PHP Manual Swoole\Timer Get information about a timer. 検索 Swoole\Timer::info (No version information available, might only be in Git) Swoole\Timer::info — Get information about a timer. 説明 pub
... lic static function Swoole\Timer::info ( int $timer_id ): ? array Get information about a timer. As of Swoole 4.4.0. パラメータ timer_id The timer ID retur ... ned by Swoole\Timer::tick() or Swoole\Timer::after() . 戻り値 Returns an array describing the timer, or null if no timer with this ID exists i ... array contains the following keys: exec_msec The time of the next execution, in milliseconds, counted from the moment the timer subsystem was started. It is not a duration. exec_count The number of times the callback has been executed. Available as o ...
-
https://man.mtool.work/php/8.3/swoole-timer.info.html
- Get information about a timer. 8529
- « Swoole\Timer::exists Swoole\Timer::list » PHP Manual Swoole\Timer Get information about a timer. 検索 Swoole\Timer::info (No version information available, might only be in Git) Swoole\Timer::info — Get information about a timer. 説明 pub
... lic static function Swoole\Timer::info ( int $timer_id ): ? array Get information about a timer. As of Swoole 4.4.0. パラメータ timer_id The timer ID retur ... ned by Swoole\Timer::tick() or Swoole\Timer::after() . 戻り値 Returns an array describing the timer, or null if no timer with this ID exists i ... array contains the following keys: exec_msec The time of the next execution, in milliseconds, counted from the moment the timer subsystem was started. It is not a duration. exec_count The number of times the callback has been executed. Available as o ...
-
https://man.mtool.work/php/8.3/swoole-timer.info.html
- Delete a timer by ID 8284
- « Swoole\Timer::after Swoole\Timer::clearAll » PHP Manual Swoole\Timer Delete a timer by ID 検索 Swoole\Timer::clear (PECL swoole >= 1.9.0) Swoole\Timer::clear — Delete a timer by ID 説明 public static function Swoole\Timer::clear ( int $timer
... mer_id ): bool 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. パラメータ timer_id The timer ID returned by Swoole\Timer::tick() or Swoole\Timer::after() . 戻り値 成功した場合に true を、失敗した場合に ... false を返します。 false is returned when no timer with this ID exists in the current process, or when the ID refers to an internal timer. 例 例1 Swoole\Timer::clear() examp ...
-
https://man.mtool.work/php/8.3/swoole-timer.clear.html
- Delete a timer by ID 8261
- « Swoole\Timer::after Swoole\Timer::clearAll » PHP Manual Swoole\Timer Delete a timer by ID 検索 Swoole\Timer::clear (PECL swoole >= 1.9.0) Swoole\Timer::clear — Delete a timer by ID 説明 public static function Swoole\Timer::clear ( int $timer
... mer_id ): bool 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. パラメータ timer_id The timer ID returned by Swoole\Timer::tick() or Swoole\Timer::after() . 戻り値 成功した場合に true を、失敗した場合に ... false を返します。 false is returned when no timer with this ID exists in the current process, or when the ID refers to an internal timer. 例 例1 Swoole\Timer::clear() examp ...
-
https://man.mtool.work/php/8.3/swoole-timer.clear.html
- Set a repeating interval timer 8144
- « Swoole\Timer::stats Swoole\WebSocket\Frame » PHP Manual Swoole\Timer Set a repeating interval timer 検索 Swoole\Timer::tick (PECL swoole >= 1.9.0) Swoole\Timer::tick — Set a repeating interval timer 説明 public static function Swoole\Timer
... r::tick ( int $ms , callable $callback , mixed ...$params ): int | false Sets a timer that triggers every ms milliseconds. Unlike a timer created with Swoole\Timer::after() , it keeps triggering until it is r ... emoved with Swoole\Timer::clear() . パラメータ ms The interval in milliseconds. Must be greater than or equal to 1 ; a lower value emits an E_WARNI ... NG and the call fails. callback The function to execute on every tick. It is called as callback(int $timer_id, mixed ...$params) : the ID of the timer is passed as the first argument, followed by the values given in params . para ...
-
https://man.mtool.work/php/8.3/swoole-timer.tick.html
- Set a repeating interval timer 8144
- « Swoole\Timer::stats Swoole\WebSocket\Frame » PHP Manual Swoole\Timer Set a repeating interval timer 検索 Swoole\Timer::tick (PECL swoole >= 1.9.0) Swoole\Timer::tick — Set a repeating interval timer 説明 public static function Swoole\Timer
... r::tick ( int $ms , callable $callback , mixed ...$params ): int | false Sets a timer that triggers every ms milliseconds. Unlike a timer created with Swoole\Timer::after() , it keeps triggering until it is r ... emoved with Swoole\Timer::clear() . パラメータ ms The interval in milliseconds. Must be greater than or equal to 1 ; a lower value emits an E_WARNI ... NG and the call fails. callback The function to execute on every tick. It is called as callback(int $timer_id, mixed ...$params) : the ID of the timer is passed as the first argument, followed by the values given in params . para ...
-
https://man.mtool.work/php/8.3/swoole-timer.tick.html
- Get timer statistics. 8098
- « Swoole\Timer::set Swoole\Timer::tick » PHP Manual Swoole\Timer Get timer statistics. 検索 Swoole\Timer::stats (No version information available, might only be in Git) Swoole\Timer::stats — Get timer statistics. 説明 public static function
... Swoole\Timer::stats (): array Get timer statistics. As of Swoole 4.4.0. 戻り値 Returns an array with the following keys: initialized Wh ... ether the timer subsystem has been started. It is false until the first timer is created. num The number of timers currently registered in ... the process. round The current round of the timer loop. 例 例1 Swoole\Timer::stats() example <?php $timer_id = Swoole\Timer :: tick ( 1000 , function () {}); var_dump ( Swo ...
-
https://man.mtool.work/php/8.3/swoole-timer.stats.html
- Get timer statistics. 8098
- « Swoole\Timer::set Swoole\Timer::tick » PHP Manual Swoole\Timer Get timer statistics. 検索 Swoole\Timer::stats (No version information available, might only be in Git) Swoole\Timer::stats — Get timer statistics. 説明 public static function
... Swoole\Timer::stats (): array Get timer statistics. As of Swoole 4.4.0. 戻り値 Returns an array with the following keys: initialized Wh ... ether the timer subsystem has been started. It is false until the first timer is created. num The number of timers currently registered in ... the process. round The current round of the timer loop. 例 例1 Swoole\Timer::stats() example <?php $timer_id = Swoole\Timer :: tick ( 1000 , function () {}); var_dump ( Swo ...
-
https://man.mtool.work/php/8.3/swoole-timer.stats.html