Type Alias ForkableAsyncIterator<T, TReturn, TNext>

ForkableAsyncIterator<T, TReturn, TNext>: AsyncIterator<T, TReturn, TNext> & {
    fork(): ForkableAsyncIterator<T, TReturn, TNext>;
}

An AsyncIterator that can be forked at a given position into multiple independent ForkableAsyncIterators starting from that position.

Type Parameters

  • T
  • TReturn = any
  • TNext = undefined