def dispatch_msg(self, addr, header, body = b''): async def _dispatch_msg(msg): await self._router.send_multipart(msg) msg = [addr, header, b'', body] asyncio.ensure_future(_dispatch_msg(msg))