Comunica
    Preparing search index...

    Interface IInstrumentedIterator

    An ongoing measurement of an iterator.

    interface IInstrumentedIterator {
        counters: Promise<IteratorCounters>;
        finish: () => void;
    }
    Index

    Properties

    Properties

    counters: Promise<IteratorCounters>

    Resolves with the counters once the iterator has ended, has been destroyed, or the measurement was stopped via IInstrumentedIterator#finish.

    finish: () => void

    Stop the measurement and resolve IInstrumentedIterator#counters with whatever was collected so far.

    This is needed for iterators that are never consumed and never destroyed, as those would otherwise never resolve.