Results of 1 - 10 of about 37 for iteration (0.001 sec.)
- EvTimer::__construct — Constructs an EvTimer watcher object | PHP 8.3 15817
- EvTimer::__construct (PECL ev >= 0.2.0) EvTimer::__construct — Constructs an EvTimer watcher object 説明 public function EvTimer::__construct ( float $after , float $repeat , callable $callback , mixed $data = null , int $priority = 0 ) Con
... stop it $w2 = new EvTimer ( 2 , 1 , function ( $w ) { echo "is called every second, is launched after 2 seconds\n" ; echo "iteration = " , Ev :: iteration (), PHP_EOL ; // Stop the watcher after 5 iterations Ev :: iteration () == 5 and $w -> stop (); // S ... top the watcher if further calls cause more than 10 iterations Ev :: iteration () >= 10 and $w -> stop (); }); // Create stopped timer. It will be inactive until we start it ourselves ... :: createStopped ( 10 , 5 , function( $w ) { echo "Callback of a timer created as stopped\n" ; // Stop the watcher after 2 iterations Ev :: iteration () >= 2 and $w -> stop (); }); // Loop until Ev::stop() is called or all of watchers stop Ev :: run (); / ...
-
https://man.mtool.work/php/8.3/evtimer.construct.html
- 例 | PHP 8.3 11350
- 例 例1 タイマーのサンプル <?php // タイマーを作り、2 秒後に起動します $w1 = new EvTimer ( 2 , 0 , function () { echo "2 seconds elapsed\n" ; }); // タイマーを作って 2 秒後に起動させ、その後は // 手で止めるまで 1 秒おきに繰り返します $w2 = n
... ew EvTimer ( 2 , 1 , function ( $w ) { echo "is called every second, is launched after 2 seconds\n" ; echo "iteration = " , Ev :: iteration (), PHP_EOL ; // 5 回繰り返したあとでウォッチャーを止めます Ev :: iteration () == 5 and $w -> stop ( ... ); // Stop the watcher if further calls cause more than 10 iterations Ev :: iteration () >= 10 and $w -> stop (); }); // 停止状態のタイマーを作ります。開始させるまでは非アクティブになります。 ... 5 , function( $w ) { echo "Callback of a timer created as stopped\n" ; // 2 回繰り返したあとでウォッチャーを止めます Ev :: iteration () >= 2 and $w -> stop (); }); // Ev::stop() が呼ばれるか、すべてのウォッチャーが止まるまでループします Ev :: run (); // 開 ...
-
https://man.mtool.work/php/8.3/ev.examples.html
- Ev::iteration — デフォルトのイベントループが新しいイベントをポーリングした回数... 9297
- Ev::iteration (PECL ev >= 0.2.0) Ev::iteration — デフォルトのイベントループが新しいイベントをポーリングした回数を返す 説明 final public static function Ev::iteration (): int デフォルトのイベントループが新しいイベントをポーリングした回数を返
...
-
https://man.mtool.work/php/8.3/ev.iteration.html
- The EvLoop class | PHP 8.3 8855
- 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
... d. クラス概要 final class EvLoop { /* プロパティ */ public $ data ; public $ backend ; public $ is_default_loop ; public $ iteration ; public $ pending ; public $ io_interval ; public $ timeout_interval ; public $ depth ; /* メソッド */ public function __ ... . The backend flags indicating the event backend in use. is_default_loop Readonly . true if it is the default event loop. iteration The current iteration count of the loop. See Ev::iteration() pending The number of pending watchers. 0 indicates that ther ... . io_interval Higher io_interval allows libev to spend more time 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-ze ...
-
https://man.mtool.work/php/8.3/class.evloop.html
- The MongoDB\Driver\Cursor class | PHP 8.3 8634
- The MongoDB\Driver\Cursor class (mongodb >=1.0.0) はじめに The MongoDB\Driver\Cursor class encapsulates the results of a MongoDB command or query and may be returned by MongoDB\Driver\Manager::executeCommand() or MongoDB\Driver\Manager::exe
... is used with a tailable cursor, the loop will stop upon reaching the end of the initial result set. Attempting to continue iteration on the cursor with a second foreach would throw an exception, since PHP attempts to rewind the cursor. Similar to result o ... bjects in other database drivers, cursors in MongoDB only support forward iteration, which means they cannot be rewound. In order to continuously read from a tailable cursor, the Cursor object must be wrapp ... ed with an IteratorIterator . This allows the application to directly control the cursor's iteration, avoid inadvertently rewinding the cursor, and decide when to wait for new results or stop iteration entirely. In order to ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-cursor.html
- Ds\Map::reduce — Reduces the map to a single value using a callback function | ... 8634
- Ds\Map::reduce (PECL ds >= 1.0.0) Ds\Map::reduce — Reduces the map to a single value using a callback function 説明 public function Ds\Map::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the map to a single value using a
... $carry , mixed $key , mixed $value ): mixed carry The return value of the previous callback, or initial if it's the first iteration. key The key of the current iteration. value The value of the current iteration. initial The initial value of the carry va ... llback = function( $carry , $key , $value ) { return $carry * $value ; }; var_dump ( $map -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 // $carry = $carry * 3 = 30 ?> 上の ... " => 2 , "c" => 3 ]); var_dump ( $map -> reduce (function( $carry , $key , $value ) { return $carry + $value + 5 ; })); // Iterations: // // $carry = $initial = null // // $carry = $carry + 1 + 5 = 6 // $carry = $carry + 2 + 5 = 13 // $carry = $carry + 3 ...
-
https://man.mtool.work/php/8.3/ds-map.reduce.html
- fann_get_quickprop_decay — Returns the decay which is a factor that weights sho... 8413
- fann_get_quickprop_decay (PECL fann >= 1.0.0) fann_get_quickprop_decay — Returns the decay which is a factor that weights should decrease in each iteration during quickprop training 説明 function fann_get_quickprop_decay ( resource $ann ):
... float The decay is a small negative valued number which is a factor that the weights should decrease in each iteration during quickprop training. This is used to make sure that the weights do not become too high during training. The default ...
-
https://man.mtool.work/php/8.3/function.fann-get-quickprop-decay.html
- fann_train — Train one iteration with a set of inputs, and a set of desired out... 8192
- fann_train (PECL fann >= 1.0.0) fann_train — Train one iteration with a set of inputs, and a set of desired outputs 説明 function fann_train ( resource $ann , array $input , array $desired_output ): bool Train one iteration with a set of in
...
-
https://man.mtool.work/php/8.3/function.fann-train.html
- Swoole\Event::cycle — Define a function to execute at the end of each event loo... 8192
- Swoole\Event::cycle (No version information available, might only be in Git) Swoole\Event::cycle — Define a function to execute at the end of each event loop iteration 説明 public static function Swoole\Event::cycle ( callable $callback , b
... ore = false ): bool Defines a callback function to execute at the end (or beginning, if before is true) of each event loop iteration. パラメータ callback The function to execute. Set to null to clear a previously set cycle function. before If true , the c ...
-
https://man.mtool.work/php/8.3/swoole-event.cycle.html
- Ds\Deque::reduce — Reduces the deque to a single value using a callback functio... 7908
- Ds\Deque::reduce (PECL ds >= 1.0.0) Ds\Deque::reduce — Reduces the deque to a single value using a callback function 説明 public function Ds\Deque::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the deque to a single valu
... lback ( mixed $carry , mixed $value ): mixed carry The return value of the previous callback, or initial if it's the first iteration. value The value of the current iteration. initial The initial value of the carry value. Can be null . 戻り値 The return v ... ; $callback = function( $carry , $value ) { return $carry * $value ; }; var_dump ( $deque -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 // $carry = $carry * 3 = 30 ?> 上の ... \Ds\Deque ([ 1 , 2 , 3 ]); var_dump ( $deque -> reduce (function( $carry , $value ) { return $carry + $value + 5 ; })); // Iterations: // // $carry = $initial = null // // $carry = $carry + 1 + 5 = 6 // $carry = $carry + 2 + 5 = 13 // $carry = $carry + 3 ...
-
https://man.mtool.work/php/8.3/ds-deque.reduce.html