We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 902d96e commit d3fef7fCopy full SHA for d3fef7f
RabbitMq/BaseConsumer.php
@@ -34,9 +34,15 @@ public function start($msgAmount = 0)
34
}
35
36
37
+ /**
38
+ * Tell the server you are going to stop consuming.
39
+ *
40
+ * It will finish up the last message and not send you any more.
41
+ */
42
public function stopConsuming()
43
{
- $this->getChannel()->basic_cancel($this->getConsumerTag());
44
+ // This gets stuck and will not exit without the last two parameters set.
45
+ $this->getChannel()->basic_cancel($this->getConsumerTag(), false, true);
46
47
48
protected function setupConsumer()
0 commit comments