« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 96 for Tasks (0.002 sec.)
Collect references to completed tasks 11018
« 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 ... task can be collected 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 "Th ... ere are currently { $worker -> collect ()} tasks on the stack to be collected\n" ; for ( $i = 0 ; $i < 15 ; ++ $i ) { $worker -> stack (new class extends Threaded {}); } e ... cho "There are { $worker -> collect ()} tasks remaining on the stack to be collected\n" ; $worker -> start (); while ( $worker -> collect ()); // blocks until all tasks ...
https://man.mtool.work/php/8.3/worker.collect.html
Collect references to completed tasks 11018
« 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 ... task can be collected 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 "Th ... ere are currently { $worker -> collect ()} tasks on the stack to be collected\n" ; for ( $i = 0 ; $i < 15 ; ++ $i ) { $worker -> stack (new class extends Threaded {}); } e ... cho "There are { $worker -> collect ()} tasks remaining on the stack to be collected\n" ; $worker -> start (); while ( $worker -> collect ()); // blocks until all tasks ...
https://man.mtool.work/php/8.3/worker.collect.html
Execute multiple tasks concurrently. 8838
« Swoole\Server::taskwait Swoole\Server::tick » PHP Manual Swoole\Server Execute multiple tasks concurrently. 検索 Swoole\Server::taskWaitMulti (PECL swoole >= 1.9.0) Swoole\Server::taskWaitMulti — Execute multiple tasks concurrently. 説明 ... public function Swoole\Server::taskWaitMulti ( array $tasks , float $timeout_ms = ? ): void パラメータ tasks timeout_ms 戻り値 関連キーワード: Swoole Server tasks Execute multiple co ...
https://man.mtool.work/php/8.3/swoole-server.taskwaitmulti.html
Add a high priority task to run in parallel 8785
« GearmanClient::addTaskBackground GearmanClient::addTaskHighBackground » PHP Manual GearmanClient Add a high priority task to run in parallel 検索 GearmanClient::addTaskHigh (PECL gearman >= 0.5.0) GearmanClient::addTaskHigh — Add a high p ... ext = null , ? string $unique_key = null ): GearmanTask | false Adds a high priority task to be run in parallel with other tasks. Call this method for all the high priority tasks to be run in parallel, then call GearmanClient::runTasks() to perform th ... e work. Tasks with a high priority will be selected from the queue before those of normal or low priority. パラメータ function_name ワー ... D。 戻り値 A GearmanTask object or false if the task could not be added. 例 例1 A high priority task along with two normal tasks A high priority task is included among two other tasks. A single worker is available, so that tasks are run one at a time, ...
https://man.mtool.work/php/8.3/gearmanclient.addtaskhigh.html
Add a low priority task to run in parallel 8785
« GearmanClient::addTaskHighBackground GearmanClient::addTaskLowBackground » PHP Manual GearmanClient Add a low priority task to run in parallel 検索 GearmanClient::addTaskLow (PECL gearman >= 0.5.0) GearmanClient::addTaskLow — Add a low pr ... , ? string $unique_key = null ): GearmanTask | false Adds a low priority background task to be run in parallel with other tasks. Call this method for all the tasks to be run in parallel, then call GearmanClient::runTasks() to perform the work. Tasks ... ID。 戻り値 A GearmanTask object or false if the task could not be added. 例 例1 A low priority task along with two normal tasks A low priority task is included among two other tasks. A single worker is available, so that tasks are run one at a time, ... -> addServer (); # set the callback for when the job is complete $gmc -> setCompleteCallback ( "reverse_complete" ); # add tasks, one of which is low priority $task = $gmc -> addTask ( "reverse" , "Hello World!" , null , "1" ); $task = $gmc -> addTask ...
https://man.mtool.work/php/8.3/gearmanclient.addtasklow.html
Add a high priority task to run in parallel 8785
« GearmanClient::addTaskBackground GearmanClient::addTaskHighBackground » PHP Manual GearmanClient Add a high priority task to run in parallel 検索 GearmanClient::addTaskHigh (PECL gearman >= 0.5.0) GearmanClient::addTaskHigh — Add a high p ... ext = null , ? string $unique_key = null ): GearmanTask | false Adds a high priority task to be run in parallel with other tasks. Call this method for all the high priority tasks to be run in parallel, then call GearmanClient::runTasks() to perform th ... e work. Tasks with a high priority will be selected from the queue before those of normal or low priority. パラメータ function_name ワー ... D。 戻り値 A GearmanTask object or false if the task could not be added. 例 例1 A high priority task along with two normal tasks A high priority task is included among two other tasks. A single worker is available, so that tasks are run one at a time, ...
https://man.mtool.work/php/8.3/gearmanclient.addtaskhigh.html
Add a low priority task to run in parallel 8785
« GearmanClient::addTaskHighBackground GearmanClient::addTaskLowBackground » PHP Manual GearmanClient Add a low priority task to run in parallel 検索 GearmanClient::addTaskLow (PECL gearman >= 0.5.0) GearmanClient::addTaskLow — Add a low pr ... , ? string $unique_key = null ): GearmanTask | false Adds a low priority background task to be run in parallel with other tasks. Call this method for all the tasks to be run in parallel, then call GearmanClient::runTasks() to perform the work. Tasks ... ID。 戻り値 A GearmanTask object or false if the task could not be added. 例 例1 A low priority task along with two normal tasks A low priority task is included among two other tasks. A single worker is available, so that tasks are run one at a time, ... -> addServer (); # set the callback for when the job is complete $gmc -> setCompleteCallback ( "reverse_complete" ); # add tasks, one of which is low priority $task = $gmc -> addTask ( "reverse" , "Hello World!" , null , "1" ); $task = $gmc -> addTask ...
https://man.mtool.work/php/8.3/gearmanclient.addtasklow.html
Execute multiple tasks concurrently. 8746
« Swoole\Server::taskwait Swoole\Server::tick » PHP Manual Swoole\Server Execute multiple tasks concurrently. 検索 Swoole\Server::taskWaitMulti (PECL swoole >= 1.9.0) Swoole\Server::taskWaitMulti — Execute multiple tasks concurrently. 説明 ... public function Swoole\Server::taskWaitMulti ( array $tasks , float $timeout_ms = ? ): void パラメータ tasks timeout_ms 戻り値 関連キーワード: Swoole Server tasks Execute multiple co ...
https://man.mtool.work/php/8.3/swoole-server.taskwaitmulti.html
The parallel\Runtime class 8641
« parallel\run parallel\Runtime::__construct » PHP Manual parallel The parallel\Runtime class 検索 The parallel\Runtime class (0.8.0) Runtime Objects Each runtime represents a single PHP thread, the thread is created (and bootstrapped) upon ... construction. The thread then waits for tasks to be scheduled: Scheduled tasks will be executed FIFO and then the thread will resume waiting until more tasks are schedu ... PHP objects. 警告 When a runtime is destroyed by the normal scoping rules of PHP objects, it will first execute all of the tasks that were scheduled, and block while doing so. Runtime Bootstrapping When a new runtime is created, it does not share code ... sses and functions loaded, nor the same autoloader set. In some cases, a very lightweight runtime is desirable because the tasks that will be scheduled do not need access to the code in the parent thread. In those cases where the tasks do need to acce ...
https://man.mtool.work/php/8.3/class.parallel-runtime.html
The parallel\Runtime class 8601
« parallel\run parallel\Runtime::__construct » PHP Manual parallel The parallel\Runtime class 検索 The parallel\Runtime class (0.8.0) Runtime Objects Each runtime represents a single PHP thread, the thread is created (and bootstrapped) upon ... construction. The thread then waits for tasks to be scheduled: Scheduled tasks will be executed FIFO and then the thread will resume waiting until more tasks are schedu ... PHP objects. 警告 When a runtime is destroyed by the normal scoping rules of PHP objects, it will first execute all of the tasks that were scheduled, and block while doing so. Runtime Bootstrapping When a new runtime is created, it does not share code ... sses and functions loaded, nor the same autoloader set. In some cases, a very lightweight runtime is desirable because the tasks that will be scheduled do not need access to the code in the parent thread. In those cases where the tasks do need to acce ...
https://man.mtool.work/php/8.3/class.parallel-runtime.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT