Swoole\Process::pop (int $maxsize = 8192) : array

Notice: the documentation is suitable for PHP extension swoole until v4.7.1, we only support PHP extension openswoole from v4.7.1

Declaration

<?php
Swoole\Process::pop (int $maxsize = 8192) : array

Parameters

maxsize

the max size of data to read from the message queue

Return

success

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.

Description

Read and pop data from the message queue.

Example