langchain_core.utils.aiter.tee_peerΒΆ

async langchain_core.utils.aiter.tee_peer(iterator: AsyncIterator[T], buffer: Deque[T], peers: List[Deque[T]], lock: AsyncContextManager[Any]) AsyncGenerator[T, None][source]ΒΆ

An individual iterator of a tee()

Parameters
  • iterator (AsyncIterator[T]) –

  • buffer (Deque[T]) –

  • peers (List[Deque[T]]) –

  • lock (AsyncContextManager[Any]) –

Return type

AsyncGenerator[T, None]