(iterable: Iterable[T], counter: Optional[Counter] = None)
| 91 | |
| 92 | |
| 93 | def _make_sync_iterator(iterable: Iterable[T], counter: Optional[Counter] = None) -> Iterator[T]: |
| 94 | for item in iterable: |
| 95 | if counter: |
| 96 | counter.value += 1 |
| 97 | yield item |
| 98 | |
| 99 | |
| 100 | async def _make_async_iterator(iterable: Iterable[T], counter: Optional[Counter] = None) -> AsyncIterator[T]: |
no outgoing calls
no test coverage detected