« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 164 for worker (0.003 sec.)
State Detection 8651
« Worker::getStacked Worker::shutdown » PHP Manual Worker State Detection 検索 Worker::isShutdown (PECL pthreads >= 2.0.0) Worker::isShutdown — State Detection 説明 public function Worker::isShutdown (): bool Whether the worker has been shu ... tdown or not. パラメータ この関数にはパラメータはありません。 戻り値 Returns whether the worker has been shutdown or not. 例 例1 Detect the state of a worker <?php $worker = new Worker (); $worker -> start (); var_dump ... ( $worker -> isShutdown ()); $worker -> shutdown (); var_dump ( $worker -> isShutdown ()); 上の例の出力は以下となります。 bool(false ... ) bool(true) 関連キーワード: worker Worker isShutdown shutdown State Detection dump getStacked pthreads Whether whether Detect state start ...
https://man.mtool.work/php/8.3/worker.isshutdown.html
State Detection 8628
« Worker::getStacked Worker::shutdown » PHP Manual Worker State Detection 検索 Worker::isShutdown (PECL pthreads >= 2.0.0) Worker::isShutdown — State Detection 説明 public function Worker::isShutdown (): bool Whether the worker has been shu ... tdown or not. パラメータ この関数にはパラメータはありません。 戻り値 Returns whether the worker has been shutdown or not. 例 例1 Detect the state of a worker <?php $worker = new Worker (); $worker -> start (); var_dump ... ( $worker -> isShutdown ()); $worker -> shutdown (); var_dump ( $worker -> isShutdown ()); 上の例の出力は以下となります。 bool(false ... ) bool(true) 関連キーワード: worker Worker isShutdown shutdown State Detection bool パラメータ var dump getStacked Search pthreads function Whether 戻り値 Ret ...
https://man.mtool.work/php/8.3/worker.isshutdown.html
Collect references to completed tasks 8559
« Worker Worker::getStacked » PHP Manual Worker Collect references to completed tasks 検索 Worker::collect (PECL pthreads >= 3.0.0) Worker::collect — Collect references to completed tasks 説明 public function Worker::collect ( Callable $col ... lector = ? ): int Allows the worker to collect references determined to be garbage by the optionally given collector. パラメータ collector A Callable collecto ... ollected or not. Only in rare cases should a custom collector need to be used. 戻り値 The number of remaining tasks on the worker's stack to be collected. 例 例1 A basic example of Worker::collect() <?php $worker = new Worker (); echo "There are curren ... tly { $worker -> collect ()} tasks on the stack to be collected\n" ; for ( $i = 0 ; $i < 15 ; ++ $i ) { $worker -> stack (new class exte ...
https://man.mtool.work/php/8.3/worker.collect.html
Collect references to completed tasks 8559
« Worker Worker::getStacked » PHP Manual Worker Collect references to completed tasks 検索 Worker::collect (PECL pthreads >= 3.0.0) Worker::collect — Collect references to completed tasks 説明 public function Worker::collect ( Callable $col ... lector = ? ): int Allows the worker to collect references determined to be garbage by the optionally given collector. パラメータ collector A Callable collecto ... ollected or not. Only in rare cases should a custom collector need to be used. 戻り値 The number of remaining tasks on the worker's stack to be collected. 例 例1 A basic example of Worker::collect() <?php $worker = new Worker (); echo "There are curren ... tly { $worker -> collect ()} tasks on the stack to be collected\n" ; for ( $i = 0 ; $i < 15 ; ++ $i ) { $worker -> stack (new class exte ...
https://man.mtool.work/php/8.3/worker.collect.html
Stacking work 8320
« Worker::shutdown Worker::unstack » PHP Manual Worker Stacking work 検索 Worker::stack (PECL pthreads >= 2.0.0) Worker::stack — Stacking work 説明 public function Worker::stack ( Threaded &$work ): int Appends the new work to the stack of ... the referenced worker. パラメータ work A Threaded object to be executed by the worker. 戻り値 The new size of the stack. 例 例1 Stacking a task ... for execution onto a worker <?php $worker = new Worker (); $work = new class extends Threaded {}; var_dump ( $worker -> stack ( $work )); 上の例の出力 ... は以下となります。 int(1) 関連キーワード: work Worker stack worker Stacking new Threaded int shutdown Search unstack pthreads function Appends referenced パラメータ object exec ...
https://man.mtool.work/php/8.3/worker.stack.html
Stacking work 8320
« Worker::shutdown Worker::unstack » PHP Manual Worker Stacking work 検索 Worker::stack (PECL pthreads >= 2.0.0) Worker::stack — Stacking work 説明 public function Worker::stack ( Threaded &$work ): int Appends the new work to the stack of ... the referenced worker. パラメータ work A Threaded object to be executed by the worker. 戻り値 The new size of the stack. 例 例1 Stacking a task ... for execution onto a worker <?php $worker = new Worker (); $work = new class extends Threaded {}; var_dump ( $worker -> stack ( $work )); 上の例の出力 ... は以下となります。 int(1) 関連キーワード: work Worker stack worker Stacking Threaded shutdown unstack pthreads Appends referenced executed size task execution onto extends dump ...
https://man.mtool.work/php/8.3/worker.stack.html
Wait for activity from one of the job servers 8240
« GearmanWorker::unregisterAll GearmanWorker::work » PHP Manual GearmanWorker Wait for activity from one of the job servers 検索 GearmanWorker::wait (PECL gearman >= 0.6.0) GearmanWorker::wait — Wait for activity from one of the job servers ... 説明 public function GearmanWorker::wait (): bool Causes the worker to wait for activity from one of the Gearman job servers when operating in non-blocking I ... メータ この関数にはパラメータはありません。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 Running worker in non-blocking mode <?php echo "Starting\n" ; # Create our worker object $worker = new GearmanWorker (); # Make the worke ... r non-blocking $worker -> addOptions ( GEARMAN_WORKER_NON_BLOCKING ); # Add the default server (localhost, port 4730) $worker -> addServer (); # ...
https://man.mtool.work/php/8.3/gearmanworker.wait.html
Gets the remaining stack size 8240
« Worker::collect Worker::isShutdown » PHP Manual Worker Gets the remaining stack size 検索 Worker::getStacked (PECL pthreads >= 2.0.0) Worker::getStacked — Gets the remaining stack size 説明 public function Worker::getStacked (): int Retur ... パラメータ この関数にはパラメータはありません。 戻り値 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 -> s ... tack (new class extends Threaded {}); } echo "There are { $worker -> getStacked ()} stacked tasks\n" ; 上の例の出力は以下となります。 There are 5 stacked tasks 関連キーワード: Worker stack ... getStacked tasks worker Gets remaining size Returns number パラメータ new There stacked collect Search isShutdown pthreads function int ...
https://man.mtool.work/php/8.3/worker.getstacked.html
Wait for activity from one of the job servers 8240
« GearmanWorker::unregisterAll GearmanWorker::work » PHP Manual GearmanWorker Wait for activity from one of the job servers 検索 GearmanWorker::wait (PECL gearman >= 0.6.0) GearmanWorker::wait — Wait for activity from one of the job servers ... 説明 public function GearmanWorker::wait (): bool Causes the worker to wait for activity from one of the Gearman job servers when operating in non-blocking I ... メータ この関数にはパラメータはありません。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 Running worker in non-blocking mode <?php echo "Starting\n" ; # Create our worker object $worker = new GearmanWorker (); # Make the worke ... r non-blocking $worker -> addOptions ( GEARMAN_WORKER_NON_BLOCKING ); # Add the default server (localhost, port 4730) $worker -> addServer (); # ...
https://man.mtool.work/php/8.3/gearmanworker.wait.html
Gets the remaining stack size 8240
« Worker::collect Worker::isShutdown » PHP Manual Worker Gets the remaining stack size 検索 Worker::getStacked (PECL pthreads >= 2.0.0) Worker::getStacked — Gets the remaining stack size 説明 public function Worker::getStacked (): int Retur ... パラメータ この関数にはパラメータはありません。 戻り値 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 -> s ... tack (new class extends Threaded {}); } echo "There are { $worker -> getStacked ()} stacked tasks\n" ; 上の例の出力は以下となります。 There are 5 stacked tasks 関連キーワード: Worker stack ... getStacked tasks worker Gets remaining size number There stacked collect isShutdown pthreads left currently waiting executed example extends Threa ...
https://man.mtool.work/php/8.3/worker.getstacked.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT