MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / __init__

Method __init__

src/core/rabbit_mq/worker.py:9–13  ·  view source on GitHub ↗
(self, consumer: AsyncRabbitMQConsumer, queue: str, exchange: str, log: Log)

Source from the content-addressed store, hash-verified

7
8class RMWorker:
9 def __init__(self, consumer: AsyncRabbitMQConsumer, queue: str, exchange: str, log: Log) -> None:
10 self.consumer = consumer
11 self.queue = queue
12 self.exchange = exchange
13 self.logger = log
14
15 async def initialize(self, loop: asyncio.AbstractEventLoop, handlers: list[MessageHandler]) -> None:
16 await self.consumer.initialize(loop=loop)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected