note 121933 added to amqpqueue.consume
| From: | mrxiaosen at 126 dot com | Date: | Wed, 29 Nov 2017 02:46:59 +0000 |
| Subject: | note 121933 added to amqpqueue.consume | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209241@lists.php.net to get a copy of this message | ||
This doc not talk about consumer tag. But the method of consumer,has the third param for consumer
tag.
If you want to set the consumer tag,see the example.
$consume_tag = sprintf("%s_%s_%s", php_uname('n'), time(), getmypid());
$queue->consume($callback, \AMQP_NOPARAM, $consume_tag)
public function consume(
callable $callback = null,
$flags = AMQP_NOPARAM,
$consumerTag = null
) {}
----
Server IP: 208.43.231.9
Probable Submitter: 104.192.108.9
----
Manual Page -- http://php.net/manual/en/amqpqueue.consume.php
Edit -- https://master.php.net/note/edit/121933
Del: integrated -- https://master.php.net/note/delete/121933/integrated
Del: useless -- https://master.php.net/note/delete/121933/useless
Del: bad code -- https://master.php.net/note/delete/121933/bad+code
Del: spam -- https://master.php.net/note/delete/121933/spam
Del: non-english -- https://master.php.net/note/delete/121933/non-english
Del: in docs -- https://master.php.net/note/delete/121933/in+docs
Del: other reasons-- https://master.php.net/note/delete/121933
Reject -- https://master.php.net/note/reject/121933
Search -- https://master.php.net/manage/user-notes.php