mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Update example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332234 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
416bc5284c
commit
b5f0236d25
1 changed files with 3 additions and 0 deletions
|
@ -99,9 +99,12 @@ function callback($ret, $callinfo) {
|
|||
echo $callinfo['method'] , " result: ", $ret , "\n";
|
||||
}
|
||||
|
||||
/* register async call to remote services */
|
||||
Yar_Concurrent_Client::call("http://example.com/operator.php", "add", array(1, 2), "callback");
|
||||
Yar_Concurrent_Client::call("http://example.com/operator.php", "sub", array(2, 1), "callback");
|
||||
Yar_Concurrent_Client::call("http://example.com/operator.php", "mul", array(2, 2), "callback");
|
||||
|
||||
/* sent all request and wait for response */
|
||||
Yar_Concurrent_Client::loop();
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue