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

Method close

src/core/rabbit_mq/producer.py:43–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 raise
42
43 async def close(self) -> None:
44 if self._conn and not self._conn.is_closed:
45 await self._conn.close()
46 self._is_initialized = False
47 self.logger.info("🚦 RabbitMQ producer closed")
48
49 @property
50 def is_connected(self) -> bool:

Callers 2

get_channelMethod · 0.45
stopMethod · 0.45

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected