php $start = microtime(true); //set 2s timeout $service = (yield service_center("User")); $service->setTimeout(2); $callId1 = $service->addCall("User::getUsersCache", ['ids' => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]]); $callId2 = $service->addCall("User::getUser", ['id' => 1]); $res = (yield $service->multiCall()); dump($res[$callId1]); dump($res[$callId2]); dump(microtime(true) - $start); #5642
Labels
Please answer these questions before submitting your issue.
What did you do? If possible, provide a simple script for reproducing the error.
What did you expect to see?
What did you see instead?
What version of Swoole are you using (show your
php --ri swoole
)?What is your machine environment used (show your
uname -a
&php -v
&gcc -v
) ?The text was updated successfully, but these errors were encountered: