Function iteratorController

Retrieve values from an iterator, passing them to a callback. Allows iterator to be started, paused, or restarted and an optional delay between reading items from iterator.

  • Type Parameters

    • T

    Parameters

    • options: Readonly<{
          delay?: Interval;
          iterator: (() => IterableIterator<T>);
          onValue: ((value: T) => boolean | void);
      }>

    Returns IteratorController