MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / _make_async_iterator

Function _make_async_iterator

tests/test_client.py:101–105  ·  view source on GitHub ↗
(iterable: Iterable[T], counter: Optional[Counter] = None)

Source from the content-addressed store, hash-verified

99
100
101async def _make_async_iterator(iterable: Iterable[T], counter: Optional[Counter] = None) -> AsyncIterator[T]:
102 for item in iterable:
103 if counter:
104 counter.value += 1
105 yield item
106
107
108def _get_open_connections(client: Anthropic | AsyncAnthropic) -> int:

Calls

no outgoing calls

Tested by

no test coverage detected