MAKS\AmqpAgent\Worker\ConsumerInterface::wait
Keeps the connection to RabbitMQ server alive as long as the default channel is in used.
Signature
public function wait([array
$parameters = NULL,
[AMQPChannel
$_channel = NULL]] )
Parameters
$parameters
—
array
- [optional] The overrides for the default exchange options of the worker.
$_channel
—
MAKS\AmqpAgent\Worker\AMQPChannel|null
- [optional] The channel that should be used instead of the default worker's channel.
Returns
- ConsumerInterface