array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'swoole-process.usequeue.php', 1 => 'Swoole\\Process::useQueue', 2 => 'Create a message queue as the communication method between the parent process and child processes.', ), 'up' => array ( 0 => 'class.swoole-process.php', 1 => 'Swoole\\Process', ), 'prev' => array ( 0 => 'swoole-process.statqueue.php', 1 => 'Swoole\\Process::statQueue', ), 'next' => array ( 0 => 'swoole-process.wait.php', 1 => 'Swoole\\Process::wait', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/process/usequeue.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Swoole\Process::useQueue

(PECL swoole >= 1.9.0)

Swoole\Process::useQueueCreate a message queue as the communication method between the parent process and child processes.

说明

public Swoole\Process::useQueue(int $key, int $mode = ?): bool

参数

key

mode

返回值