@comunica/utils-iterator
v4.0.1
Published
Async iterator utilities
Downloads
4,052
Readme
Comunica Iterator Utils
Utilities related to AsyncIterator.
This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.
Click here if you just want to query with Comunica.
Install
$ yarn add @comunica/utils-iterator
Exposed utilities
ChunkedIterator
: Splits an iterator into chunks based on a given block size.ClosableIterator
: An AsyncIterator with a callback for when this iterator is closed in any way. In contrast to ClosableTransformIterator, this does not add the overhead of a TransformIterator.ClosableTransformIterator
: A TransformIterator with a callback for when this iterator is closed in any way.instrumentIterator
: Profile an iterator by monkey-patching its_read
andread
methods.