def __anext__(self) -> Awaitable:
if self._last_served_index < len(self.services):
service = self._AsyncServiceFuture(
Service(self.services[self._last_served_index])
)
self._last_served_index += 1
else:
raise StopAsyncIteration()
return service
评论列表
文章目录