interface
TransportInterface implements
ReceiverInterface, SenderInterface
Methods
void
receive(callable $handler)
Receive some messages to the given handler.
void
stop()
Stop receiving some messages.
Details
void
receive(callable $handler)
Receive some messages to the given handler.
The handler will have, as argument, the received {@link \Symfony\Component\Messenger\Envelope} containing the message.
Note that this envelope can be null
if the timeout to receive something has expired.
void
stop()
Stop receiving some messages.
Sends the given envelope.