You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I realize that it's not just for 'basic_deliver'. Nevertheless, it returns the result of the dispatched method. So I supposed that result can be used somehow by 'wait' caller. Or you mean, that while waiting for 'basic_deliver' result I can get the result of another method? And 'return' statements in 'wait' just break the func execution?
You call wait() to wait on the channel while it reads data from the network. In case of basic.deliver, you will have the callback to do something with the data received. Else, it just there to break the execution. As far as I can see this now, wait() is not going to return anything.
When I call $channel->wait() it calls consumer callback in such call chain:
return AbstractChannel->dispatch
return AMQPChannel->basic_deliver
'basic_deliver' just calls 'call_user_func', but it doesn't returns a result of that call.
It would be nice to add 'return' statement. Then it would be possible to write:
$callback_result = $channel->wait();
The text was updated successfully, but these errors were encountered: