[文档]@contextmanagerdefdefault_dispatcher(self,hostname=None,enabled=True,buffer_while_offline=False):withself.app.amqp.producer_pool.acquire(block=True)asprod:# pylint: disable=too-many-function-args# This is a property pylint...withself.Dispatcher(prod.connection,hostname,enabled,prod.channel,buffer_while_offline)asd:yieldd