Join 4,000+ others and never miss out on new tips, tutorials, and more.
4.x is outdated, please check the latest version 22.x
Latest version:
pecl install openswoole-22.1.2
<?php Swoole\Process::pop (int $maxsize = 8192) : array
the max size of data to read from the message queue
If failed, it returns FALSE
. Or it returns the data.
In the blocking mode, if the queue is empty, the call of this method will block.
In the non-blocking mode, if the queue is empty, the call of this method will return FALSE
immediately and set the error code to ENOMSG
.