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]