A useful little feature of PHP (argument unpacking)

logo.jpg

I spent some time a few years ago and made some improvements to the performance of Yar, but I also encountered a problem left by the lack of good design that made me a little uncomfortable, that is, when calling RPC in parallel, the current method prototype Yes:

public static Yar_Concurrent_Client::call(string $uri, string $method, ?array $arguments = NULL, ?callable $callback = NULL, ?callable $error_callback = NULL, ?array $options = NULL):null|int|bool { }

Does it look big?

This article is reprinted from: https://www.laruence.com/2022/05/10/6192.html
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment