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

Function _make_async_iterator

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected