(iterable: Iterable[T], counter: Optional[Counter] = None)
| 120 | |
| 121 | |
| 122 | def _make_sync_iterator(iterable: Iterable[T], counter: Optional[Counter] = None) -> Iterator[T]: |
| 123 | for item in iterable: |
| 124 | if counter: |
| 125 | counter.value += 1 |
| 126 | yield item |
| 127 | |
| 128 | |
| 129 | async def _make_async_iterator(iterable: Iterable[T], counter: Optional[Counter] = None) -> AsyncIterator[T]: |
no outgoing calls
no test coverage detected