Channel methods#
Functions for calling channel methods from a consumer callback running in another thread.
- yapw.methods.publish(state, channel, message, routing_key, *args, **kwargs)[source]#
Publish the
message
with therouting_key
, to the exchange set by thestate
.
- yapw.methods.ack(state, channel, delivery_tag=0, **kwargs)[source]#
Ack a message by its delivery tag.