« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 112 for Complete (0.010 sec.)
Add a background task to be run in parallel 9986
« GearmanClient::addTask GearmanClient::addTaskHigh » PHP Manual GearmanClient Add a background task to be run in parallel 検索 GearmanClient::addTaskBackground (PECL gearman >= 0.5.0) GearmanClient::addTaskBackground — Add a background tas ... ent (); # add the default job server $gmc -> addServer (); # set a couple of callbacks so we can track progress $gmc -> setCompleteCallback ( "reverse_complete" ); $gmc -> setStatusCallback ( "reverse_status" ); # add a task for the "reverse" function $t ... $task -> jobHandle () . " - " . $task -> taskNumerator () . "/" . $task -> taskDenominator () . "\n" ; } function reverse_complete ( $task ) { echo "COMPLETE: " . $task -> unique () . ", " . $task -> data () . "\n" ; } ?> <?php # The worker script echo ... howing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " . ( $x + 1 ) . "/ $workload_size complete\n" ; $job -> sendStatus ( $x + 1 , $workload_size ); $job -> sendData ( substr ( $workload , $x , 1 )); sleep ( 1 ); } $re ...
https://man.mtool.work/php/8.3/gearmanclient.addtaskbackground.html
Add a background task to be run in parallel 9961
« GearmanClient::addTask GearmanClient::addTaskHigh » PHP Manual GearmanClient Add a background task to be run in parallel 検索 GearmanClient::addTaskBackground (PECL gearman >= 0.5.0) GearmanClient::addTaskBackground — Add a background tas ... ent (); # add the default job server $gmc -> addServer (); # set a couple of callbacks so we can track progress $gmc -> setCompleteCallback ( "reverse_complete" ); $gmc -> setStatusCallback ( "reverse_status" ); # add a task for the "reverse" function $t ... $task -> jobHandle () . " - " . $task -> taskNumerator () . "/" . $task -> taskDenominator () . "\n" ; } function reverse_complete ( $task ) { echo "COMPLETE: " . $task -> unique () . ", " . $task -> data () . "\n" ; } ?> <?php # The worker script echo ... howing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " . ( $x + 1 ) . "/ $workload_size complete\n" ; $job -> sendStatus ( $x + 1 , $workload_size ); $job -> sendData ( substr ( $workload , $x , 1 )); sleep ( 1 ); } $re ...
https://man.mtool.work/php/8.3/gearmanclient.addtaskbackground.html
Basic Gearman client and worker, background 9620
« Basic usage Basic Gearman client and worker, submitting tasks » PHP Manual 例 Basic Gearman client and worker, background 検索 Basic Gearman client and worker, background 例1 Basic Gearman client and worker, background This example shows ... worker reverses the string. Note that since the work is performed asynchronously, the client does not wait for the job to complete and exits (and hence the client never receives the results). <?php # create our client object $gmclient = new GearmanClien ... howing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " . ( $x + 1 ) . "/ $workload_size complete\n" ; $job -> sendStatus ( $x , $workload_size ); sleep ( 1 ); } $result = strrev ( $workload ); echo "Result: $result \n" ... ます。 % php reverse_worker.php Starting Waiting for job... Received job: H:foo.local:41 Workload: this is a test (14) 1/14 complete 2/14 complete 3/14 complete 4/14 complete 5/14 complete 6/14 complete 7/14 complete 8/14 complete 9/14 complete 10/14 comp ...
https://man.mtool.work/php/8.3/gearman.examples-reverse-bg.html
Basic Gearman client and worker, background 9620
« Basic usage Basic Gearman client and worker, submitting tasks » PHP Manual 例 Basic Gearman client and worker, background 検索 Basic Gearman client and worker, background 例1 Basic Gearman client and worker, background This example shows ... worker reverses the string. Note that since the work is performed asynchronously, the client does not wait for the job to complete and exits (and hence the client never receives the results). <?php # create our client object $gmclient = new GearmanClien ... howing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " . ( $x + 1 ) . "/ $workload_size complete\n" ; $job -> sendStatus ( $x , $workload_size ); sleep ( 1 ); } $result = strrev ( $workload ); echo "Result: $result \n" ... ます。 % php reverse_worker.php Starting Waiting for job... Received job: H:foo.local:41 Workload: this is a test (14) 1/14 complete 2/14 complete 3/14 complete 4/14 complete 5/14 complete 6/14 complete 7/14 complete 8/14 complete 9/14 complete 10/14 comp ...
https://man.mtool.work/php/8.3/gearman.examples-reverse-bg.html
Basic usage 9430
« 例 Basic Gearman client and worker, background » PHP Manual 例 Basic usage 検索 Basic usage 例1 Basic Gearman client and worker This example shows a very simple client and worker. The client sends a string to the job server, and the worke ... GEARMAN_WORK_STATUS : list( $numerator , $denominator )= $gmclient -> doStatus (); echo "Status: $numerator / $denominator complete\n" ; break; case GEARMAN_WORK_FAIL : echo "Failed\n" ; exit; case GEARMAN_SUCCESS : echo "Success: $result \n" ; break; de ... howing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " . ( $x + 1 ) . "/ $workload_size complete\n" ; $job -> sendStatus ( $x , $workload_size ); sleep ( 1 ); } $result = strrev ( $workload ); echo "Result: $result \n" ... % php reverse_worker.php Starting Waiting for job... Received job: H:foo.local:36 Workload: Hello! (6) Sending status: 1/6 complete Sending status: 2/6 complete Sending status: 3/6 complete Sending status: 4/6 complete Sending status: 5/6 complete Sendin ...
https://man.mtool.work/php/8.3/gearman.examples-reverse.html
Basic usage 9392
« 例 Basic Gearman client and worker, background » PHP Manual 例 Basic usage 検索 Basic usage 例1 Basic Gearman client and worker This example shows a very simple client and worker. The client sends a string to the job server, and the worke ... GEARMAN_WORK_STATUS : list( $numerator , $denominator )= $gmclient -> doStatus (); echo "Status: $numerator / $denominator complete\n" ; break; case GEARMAN_WORK_FAIL : echo "Failed\n" ; exit; case GEARMAN_SUCCESS : echo "Success: $result \n" ; break; de ... howing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " . ( $x + 1 ) . "/ $workload_size complete\n" ; $job -> sendStatus ( $x , $workload_size ); sleep ( 1 ); } $result = strrev ( $workload ); echo "Result: $result \n" ... % php reverse_worker.php Starting Waiting for job... Received job: H:foo.local:36 Workload: Hello! (6) Sending status: 1/6 complete Sending status: 2/6 complete Sending status: 3/6 complete Sending status: 4/6 complete Sending status: 5/6 complete Sendin ...
https://man.mtool.work/php/8.3/gearman.examples-reverse.html
Run a single task and return a result [deprecated] 8596
« GearmanClient::data GearmanClient::doBackground » PHP Manual GearmanClient Run a single task and return a result [deprecated] 検索 GearmanClient::do (PECL gearman >= 0.5.0) GearmanClient::do — Run a single task and return a result [deprec ... GEARMAN_WORK_STATUS : list( $numerator , $denominator )= $gmclient -> doStatus (); echo "Status: $numerator / $denominator complete\n" ; break; case GEARMAN_WORK_FAIL : echo "Failed\n" ; exit; case GEARMAN_SUCCESS : break; default: echo "RET: " . $gmclie ... st showing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " + $x + 1 . "/ $workload_size complete\n" ; $job -> sendStatus ( $x + 1 , $workload_size ); $job -> sendData ( substr ( $workload , $x , 1 )); sleep ( 1 ); } $re ... えば以下のようになります。 Worker output: Starting Waiting for job... Received job: H:foo.local:106 Workload: Hello! (6) 1/6 complete 2/6 complete 3/6 complete 4/6 complete 5/6 complete 6/6 complete Result: !olleH Client output: Starting Sending job Status ...
https://man.mtool.work/php/8.3/gearmanclient.do.html
Run a single task and return a result 8596
« GearmanClient::doLowBackground GearmanClient::doStatus » PHP Manual GearmanClient Run a single task and return a result 検索 GearmanClient::doNormal (No version information available, might only be in Git) GearmanClient::doNormal — Run a ... GEARMAN_WORK_STATUS : list( $numerator , $denominator )= $gmclient -> doStatus (); echo "Status: $numerator / $denominator complete\n" ; break; case GEARMAN_WORK_FAIL : echo "Failed\n" ; exit; case GEARMAN_SUCCESS : break; default: echo "RET: " . $gmclie ... st showing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " + $x + 1 . "/ $workload_size complete\n" ; $job -> sendStatus ( $x + 1 , $workload_size ); $job -> sendData ( substr ( $workload , $x , 1 )); sleep ( 1 ); } $re ... えば以下のようになります。 Worker output: Starting Waiting for job... Received job: H:foo.local:106 Workload: Hello! (6) 1/6 complete 2/6 complete 3/6 complete 4/6 complete 5/6 complete 6/6 complete Result: !olleH Client output: Starting Sending job Status ...
https://man.mtool.work/php/8.3/gearmanclient.donormal.html
Run a single task and return a result [deprecated] 8596
« GearmanClient::data GearmanClient::doBackground » PHP Manual GearmanClient Run a single task and return a result [deprecated] 検索 GearmanClient::do (PECL gearman >= 0.5.0) GearmanClient::do — Run a single task and return a result [deprec ... GEARMAN_WORK_STATUS : list( $numerator , $denominator )= $gmclient -> doStatus (); echo "Status: $numerator / $denominator complete\n" ; break; case GEARMAN_WORK_FAIL : echo "Failed\n" ; exit; case GEARMAN_SUCCESS : break; default: echo "RET: " . $gmclie ... st showing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " + $x + 1 . "/ $workload_size complete\n" ; $job -> sendStatus ( $x + 1 , $workload_size ); $job -> sendData ( substr ( $workload , $x , 1 )); sleep ( 1 ); } $re ... えば以下のようになります。 Worker output: Starting Waiting for job... Received job: H:foo.local:106 Workload: Hello! (6) 1/6 complete 2/6 complete 3/6 complete 4/6 complete 5/6 complete 6/6 complete Result: !olleH Client output: Starting Sending job Status ...
https://man.mtool.work/php/8.3/gearmanclient.do.html
Run a single task and return a result 8596
« GearmanClient::doLowBackground GearmanClient::doStatus » PHP Manual GearmanClient Run a single task and return a result 検索 GearmanClient::doNormal (No version information available, might only be in Git) GearmanClient::doNormal — Run a ... GEARMAN_WORK_STATUS : list( $numerator , $denominator )= $gmclient -> doStatus (); echo "Status: $numerator / $denominator complete\n" ; break; case GEARMAN_WORK_FAIL : echo "Failed\n" ; exit; case GEARMAN_SUCCESS : break; default: echo "RET: " . $gmclie ... st showing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " + $x + 1 . "/ $workload_size complete\n" ; $job -> sendStatus ( $x + 1 , $workload_size ); $job -> sendData ( substr ( $workload , $x , 1 )); sleep ( 1 ); } $re ... えば以下のようになります。 Worker output: Starting Waiting for job... Received job: H:foo.local:106 Workload: Hello! (6) 1/6 complete 2/6 complete 3/6 complete 4/6 complete 5/6 complete 6/6 complete Result: !olleH Client output: Starting Sending job Status ...
https://man.mtool.work/php/8.3/gearmanclient.donormal.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT