langchain_core.utils.iter
.tee_peerΒΆ
- langchain_core.utils.iter.tee_peer(iterator: Iterator[T], buffer: Deque[T], peers: List[Deque[T]], lock: ContextManager[Any]) Generator[T, None, None] [source]ΒΆ
An individual iterator of a
tee()
- Parameters
iterator (Iterator[T]) β
buffer (Deque[T]) β
peers (List[Deque[T]]) β
lock (ContextManager[Any]) β
- Return type
Generator[T, None, None]