MAKS\AmqpAgent\Worker\Consumer::cancel
Ends a queue consumer.
Signature
public function cancel(AMQPChannel
$_channel,
[array
$parameters = NULL] )
Parameters
$_channel
—
PhpAmqpLib\Channel\AMQPChannel
- The channel that should be used.
$parameters
—
array
- [optional] The overrides for the default cancel options.
Returns
- mixed
Errors/Exceptions
-
AMQPTimeoutException
Defined by Interface
ConsumerInterface
Test Coverage
Information
- Coverage: 6/6 Lines (100%)
- Tests: 1
- Passed: 1 (100%)
Tests
- [ PASSED ] — MAKS\AmqpAgent\Tests\Worker\ConsumerTest::testCancelCancelsAConsumerAndRedeiliversMessagesToRabbitMQServer