Results of 1 - 2 of about 2 for stacked (0.001 sec.)
- Worker::getStacked — Gets the remaining stack size | PHP 8.3 11228
- Worker::getStacked (PECL pthreads >= 2.0.0) Worker::getStacked — Gets the remaining stack size 説明 public function Worker::getStacked (): int Returns the number of tasks left on the stack パラメータ この関数にはパラメータはありません。 戻り
... 値 Returns the number of tasks currently waiting to be executed by the worker 例 例1 A basic example of Worker::getStacked <?php $worker = new Worker (); for ( $i = 0 ; $i < 5 ; ++ $i ) { $worker -> stack (new class extends Threaded {}); } echo ... "There are { $worker -> getStacked ()} stacked tasks\n" ; 上の例の出力は以下となります。 There are 5 stacked tasks 他のマニュアルの関連ページ Python library ...
-
https://man.mtool.work/php/8.3/worker.getstacked.html
- Worker::shutdown — Shutdown the worker | PHP 8.3 7485
- Worker::shutdown (PECL pthreads >= 2.0.0) Worker::shutdown — Shutdown the worker 説明 public function Worker::shutdown (): bool Shuts down the worker after executing all of the stacked tasks. パラメータ この関数にはパラメータはありません。
...
-
https://man.mtool.work/php/8.3/worker.shutdown.html
PREV
1
NEXT