« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 54 for concurrent (0.002 sec.)
Yar_Concurrent_Client::reset — Clean all registered calls | PHP 8.3 12667
Yar_Concurrent_Client::reset (PECL yar >= 1.2.4) Yar_Concurrent_Client::reset — Clean all registered calls 説明 public static function Yar_Concurrent_Client::reset (): bool Discards all calls registered with Yar_Concurrent_Client::call() th ... at have not been sent yet. 注意 : Yar_Concurrent_Client::loop() empties the call list automatically once it has finished, so reset is only needed to abort a batch that was ... never sent. パラメータ この関数にはパラメータはありません。 戻り値 Returns true , or false when the concurrent client is currently inside Yar_Concurrent_Client::loop() , in which case an E_WARNING -level error is raised. 例 例1 Yar_C ... oncurrent_Client::reset() example <?php function callback ( $retval , $callinfo ) { var_dump ( $retval ); } Yar_Concurrent_Client :: call ( "http://api.example.com/operator.php" , "some_method" , array( "parameters" ), "callback" ); /* never sen ...
https://man.mtool.work/php/8.3/yar-concurrent-client.reset.html
Yar_Concurrent_Client::call — Register a concurrent call | PHP 8.3 12341
Yar_Concurrent_Client::call (PECL yar >= 1.0.0) Yar_Concurrent_Client::call — Register a concurrent call 説明 public static function Yar_Concurrent_Client::call ( string $uri , string $method , ? array $parameters = null , ? callable $callb ... lse | null Registers a remote RPC call. The request is not sent immediately; all registered calls are sent together by Yar_Concurrent_Client::loop() , and the responses are handled as they arrive. 注意 : Only HTTP and HTTPS URIs are supported. Concurrent c ... all was registered uri — the address of the service method — the name of the remote method If omitted, the callback of Yar_Concurrent_Client::loop() is used; see that method for what happens when neither is given. error_callback A callable invoked when thi ... 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 happens when neither is given. options An array of client options, keyed ...
https://man.mtool.work/php/8.3/yar-concurrent-client.call.html
Yar_Concurrent_Client::loop — Send and wait for all registered calls | PHP 8.3 12059
Yar_Concurrent_Client::loop (PECL yar >= 1.0.0) Yar_Concurrent_Client::loop — Send and wait for all registered calls 説明 public static function Yar_Concurrent_Client::loop ( ? callable $callback = null , ? callable $error_callback = null , ... ? array $options = null ): ? bool Sends all calls registered with Yar_Concurrent_Client::call() in parallel and blocks until every response has arrived and been handled. The call list is emptied when thi ... 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 , uri and method of the call; see Yar_Concurrent_Client::call() . パ ... turns true when every registered call has been handled, or when no calls have been registered at all. Returns false if the concurrent client is already running inside another loop; in that case a warning is raised. 例 例1 Yar_Concurrent_Client::loop() exam ...
https://man.mtool.work/php/8.3/yar-concurrent-client.loop.html
The Yar_Concurrent_Client class | PHP 8.3 11970
The Yar_Concurrent_Client class (No version information available, might only be in Git) はじめに A static helper that batches remote RPC calls. Calls registered with Yar_Concurrent_Client::call() are not sent immediately; they are all disp ... atched together, in parallel, by Yar_Concurrent_Client::loop() . The class is meant for applications that need the results of several remote calls. Only independent calls ... run sequentially. Through Yar_Client the calls are sent one after another, each paying its full round-trip time; with the concurrent client they are sent at the same time, so the overall waiting time drops to the duration of the single slowest call. 注意 ... : Only HTTP(S) services are supported for concurrent calls. They are sent concurrently through curl's multi-handle interface, which the TCP/Unix socket transport does not impl ...
https://man.mtool.work/php/8.3/class.yar-concurrent-client.html
Yet Another RPC Framework | PHP 8.3 10042
Yet Another RPC Framework はじめに Yar (Yet another RPC framework) is a light, concurrent RPC framework which aims to provide a simple and easy way to do communication between PHP applications. It can also issue multiple calls to remote ser ... vices concurrently. Yar is a native PHP extension rather than a userland library. It uses a compact binary protocol over HTTP, HTTPS or TCP ... lient::__construct — Create a client Yar_Client::getOpt — Read a client option Yar_Client::setOpt — Set client options Yar_Concurrent_Client — The Yar_Concurrent_Client class Yar_Concurrent_Client::call — Register a concurrent call Yar_Concurrent_Client::l ... oop — Send and wait for all registered calls Yar_Concurrent_Client::reset — Clean all registered calls Yar_Server_Exception — The Yar_Server_Exception class Yar_Server_Exception::get ...
https://man.mtool.work/php/8.3/book.yar.html
例 | PHP 8.3 8989
例 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 concurrently, and a client that talks to a server over TCP. 例 ... なります。 int(3) int(5) PHP Fatal error: Uncaught Yar_Client_Exception: call to undefined api Operator::_add() in * 例4 Yar Concurrent Client Example Instead of calling services one after another, Yar_Concurrent_Client registers several calls first and then ... dispatches them all at once with Yar_Concurrent_Client::loop() . The responses are passed to the callback in the order they arrive, not in the order the calls were regist ... ck ( $type , $error , $callinfo ) { error_log ( "[ $type ] $error " ); } /* register async calls to remote services */ Yar_Concurrent_Client :: call ( "http://api.example.com/operator.php" , "add" , array( 1 , 2 ), "callback" ); Yar_Concurrent_Client :: ca ...
https://man.mtool.work/php/8.3/yar.examples.html
ウェブサービス | PHP 8.3 7891
ウェブサービス OAuth インストール/設定 定義済み定数 例 OAuth 関数 OAuth — OAuth クラス OAuthProvider — OAuthProvider クラス OAuthException — OAuthException クラス SOAP インストール/設定 定義済み定数 SOAP 関数 SoapClient — SoapClient クラス ... The Yar Protocol インストール/設定 定義済み定数 例 Yar_Server — The Yar_Server class Yar_Client — The Yar_Client class Yar_Concurrent_Client — The Yar_Concurrent_Client class Yar_Server_Exception — The Yar_Server_Exception class Yar_Server_Output_Exception ... eption — The Yar_Client_Transport_Exception class XML-RPC インストール/設定 XML-RPC 関数 他のマニュアルの関連ページ Python concurrent Docker docker version ...
https://man.mtool.work/php/8.3/refs.webservice.html
実行時設定 | PHP 8.3 7713
実行時設定 php.ini の設定により動作が変化します。 Yar 設定オプション 名前 デフォルト 変更可能 変更履歴 yar.connect_timeout 1000 INI_ALL yar.content_type application/octet-stream INI_ALL yar.debug Off INI_ALL yar.expose_info On INI_PERDIR ya ... な説明を示します。 yar.connect_timeout int Connect timeout in milliseconds for HTTP calls issued through Yar_Client and Yar_Concurrent_Client . 注意 : This value is interpreted in milliseconds. Prior to Yar 1.2.1 it was measured in seconds (the default was ... mpatibility. Available as of Yar 2.4.0. yar.timeout int Timeout in milliseconds for RPC calls issued by Yar_Client and Yar_Concurrent_Client . 他のマニュアルの関連ページ Django tools Python debug Python concurrent Docker docker info Django 1.11.22 Django 2 ...
https://man.mtool.work/php/8.3/yar.configuration.html
Ds\Queue::count — Returns the number of values in the queue | PHP 8.3 7149
Ds\Queue::count (PECL ds >= 1.0.0) Ds\Queue::count — Returns the number of values in the queue 説明 See Countable::count() 他のマニュアルの関連ページ Python queue Python asyncio-threading Python concurrent.interpreters Python asyncio-queue ...
https://man.mtool.work/php/8.3/ds-queue.count.html
Ds\Queue::jsonSerialize — Returns a representation that can be converted to JSO... 7105
Ds\Queue::jsonSerialize (PECL ds >= 1.0.0) Ds\Queue::jsonSerialize — Returns a representation that can be converted to JSON 説明 See JsonSerializable::jsonSerialize() 注意 : You should never need to call this directly. 他のマニュアルの関連ペ ... ージ Python queue Python concurrent.interpreters Python asyncio-threading Python multiprocessing Python asyncio-queue Linux JM atoq(3) ...
https://man.mtool.work/php/8.3/ds-queue.jsonserialize.html
PREV 1 2 3 4 5 6 NEXT