« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 8 of about 8 for callinfo (0.002 sec.)
Send and wait for all registered calls 11766
« Yar_Concurrent_Client::call Yar_Concurrent_Client::reset » PHP Manual Yar_Concurrent_Client Send and wait for all registered calls 検索 Yar_Concurrent_Client::loop (PECL yar >= 1.0.0) Yar_Concurrent_Client::loop — Send and wait for all re ... lback fires as soon as its response arrives. To find out which call a response belongs to, check the sequence entry of the callinfo argument against the sequence number returned by Yar_Concurrent_Client::call() . The callinfo array holds the sequence , u ... r own error callback. It receives three arguments: the error type (one of the YAR_ERR_* codes), the error message, and the callinfo array . If this parameter is omitted, a failed call raises a PHP warning instead; unlike the synchronous Yar_Client , no e ... loop; in that case a warning is raised. 例 例1 Yar_Concurrent_Client::loop() example <?php function callback ( $retval , $callinfo ) { if ( $callinfo == NULL ) { echo "Now, all requests are sent, and no response available\n" ; } else { echo "This is a r ...
https://man.mtool.work/php/8.3/yar-concurrent-client.loop.html
Send and wait for all registered calls 11766
« Yar_Concurrent_Client::call Yar_Concurrent_Client::reset » PHP Manual Yar_Concurrent_Client Send and wait for all registered calls 検索 Yar_Concurrent_Client::loop (PECL yar >= 1.0.0) Yar_Concurrent_Client::loop — Send and wait for all re ... lback fires as soon as its response arrives. To find out which call a response belongs to, check the sequence entry of the callinfo argument against the sequence number returned by Yar_Concurrent_Client::call() . The callinfo array holds the sequence , u ... r own error callback. It receives three arguments: the error type (one of the YAR_ERR_* codes), the error message, and the callinfo array . If this parameter is omitted, a failed call raises a PHP warning instead; unlike the synchronous Yar_Client , no e ... loop; in that case a warning is raised. 例 例1 Yar_Concurrent_Client::loop() example <?php function callback ( $retval , $callinfo ) { if ( $callinfo == NULL ) { echo "Now, all requests are sent, and no response available\n" ; } else { echo "This is a r ...
https://man.mtool.work/php/8.3/yar-concurrent-client.loop.html
Register a concurrent call 9145
« Yar_Concurrent_Client Yar_Concurrent_Client::loop » PHP Manual Yar_Concurrent_Client Register a concurrent call 検索 Yar_Concurrent_Client::call (PECL yar >= 1.0.0) Yar_Concurrent_Client::call — Register a concurrent call 説明 public stat ... method. callback A callable invoked when the response for this call arrives, with two arguments: the response value, and a callinfo array describing the call: sequence — the sequence number returned when the call was registered uri — the address of the s ... nvoked when this call fails, with three arguments: the error type (one of the YAR_ERR_* codes), the error message, and the callinfo array described above. If omitted, the error_callback of Yar_Concurrent_Client::loop() is used; see that method for what h ... URI or method name is empty, or the URI is not an HTTP(S) address, with a warning. 例 <?php function callback ( $retval , $callinfo ) { var_dump ( $retval ); } function error_callback ( $type , $error , $callinfo ) { error_log ( $error ); } Yar_Concurren ...
https://man.mtool.work/php/8.3/yar-concurrent-client.call.html
Register a concurrent call 9145
« Yar_Concurrent_Client Yar_Concurrent_Client::loop » PHP Manual Yar_Concurrent_Client Register a concurrent call 検索 Yar_Concurrent_Client::call (PECL yar >= 1.0.0) Yar_Concurrent_Client::call — Register a concurrent call 説明 public stat ... method. callback A callable invoked when the response for this call arrives, with two arguments: the response value, and a callinfo array describing the call: sequence — the sequence number returned when the call was registered uri — the address of the s ... nvoked when this call fails, with three arguments: the error type (one of the YAR_ERR_* codes), the error message, and the callinfo array described above. If omitted, the error_callback of Yar_Concurrent_Client::loop() is used; see that method for what h ... URI or method name is empty, or the URI is not an HTTP(S) address, with a warning. 例 <?php function callback ( $retval , $callinfo ) { var_dump ( $retval ); } function error_callback ( $type , $error , $callinfo ) { error_log ( $error ); } Yar_Concurren ...
https://man.mtool.work/php/8.3/yar-concurrent-client.call.html
例 8748
« 定義済み定数 Yar_Server » PHP Manual Yar 例 検索 例 The examples below walk through a complete service: a server that exposes a few arithmetic methods, a synchronous client that calls them, a client that fans several calls out concurrentl ... ler knows no further request is pending; the example below checks for this notification. <?php function callback ( $ret , $callinfo ) { if ( $callinfo == NULL ) { /* all requests are sent, waiting for the responses */ return; } echo $callinfo [ 'method' ... ], " result: " , $ret , "\n" ; } function error_callback ( $type , $error , $callinfo ) { error_log ( "[ $type ] $error " ); } /* register async calls to remote services */ Yar_Concurrent_Client :: call ( "ht ... llback methods example return Concurrent service server calls requests operator Server Example method integer request dump callinfo Operator responses below synchronous them ...
https://man.mtool.work/php/8.3/yar.examples.html
例 8115
« 定義済み定数 Yar_Server » PHP Manual Yar 例 検索 例 The examples below walk through a complete service: a server that exposes a few arithmetic methods, a synchronous client that calls them, a client that fans several calls out concurrentl ... ler knows no further request is pending; the example below checks for this notification. <?php function callback ( $ret , $callinfo ) { if ( $callinfo == NULL ) { /* all requests are sent, waiting for the responses */ return; } echo $callinfo [ 'method' ... ], " result: " , $ret , "\n" ; } function error_callback ( $type , $error , $callinfo ) { error_log ( "[ $type ] $error " ); } /* register async calls to remote services */ Yar_Concurrent_Client :: call ( "ht ...
https://man.mtool.work/php/8.3/yar.examples.html
Clean all registered calls 6759
« Yar_Concurrent_Client::loop Yar_Server_Exception » PHP Manual Yar_Concurrent_Client Clean all registered calls 検索 Yar_Concurrent_Client::reset (PECL yar >= 1.2.4) Yar_Concurrent_Client::reset — Clean all registered calls 説明 public sta ... se an E_WARNING -level error is raised. 例 例1 Yar_Concurrent_Client::reset() example <?php function callback ( $retval , $callinfo ) { var_dump ( $retval ); } Yar_Concurrent_Client :: call ( "http://api.example.com/operator.php" , "some_method" , array( ...
https://man.mtool.work/php/8.3/yar-concurrent-client.reset.html
Clean all registered calls 6759
« Yar_Concurrent_Client::loop Yar_Server_Exception » PHP Manual Yar_Concurrent_Client Clean all registered calls 検索 Yar_Concurrent_Client::reset (PECL yar >= 1.2.4) Yar_Concurrent_Client::reset — Clean all registered calls 説明 public sta ... se an E_WARNING -level error is raised. 例 例1 Yar_Concurrent_Client::reset() example <?php function callback ( $retval , $callinfo ) { var_dump ( $retval ); } Yar_Concurrent_Client :: call ( "http://api.example.com/operator.php" , "some_method" , array( ...
https://man.mtool.work/php/8.3/yar-concurrent-client.reset.html
PREV 1 NEXT