MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / __aiter__

Method __aiter__

python/ctranslate2/extensions.py:454–456  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

452 await self.queue.put(None)
453
454 def __aiter__(self):
455 self.iterator_task = asyncio.create_task(self.producer())
456 return self
457
458 async def __anext__(self):
459 if self.shutdown_event.is_set():

Callers

nothing calls this directly

Calls 1

producerMethod · 0.95

Tested by

no test coverage detected