@comunica/utils-iterator
TypeScript icon, indicating that this package has built-in type declarations

4.0.1 • Public • Published

Comunica Iterator Utils

npm version

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 and read methods.

Package Sidebar

Install

npm i @comunica/utils-iterator

Weekly Downloads

2,165

Version

4.0.1

License

MIT

Unpacked Size

24.8 kB

Total Files

18

Last publish

Collaborators

  • jeswr
  • joachimvh
  • rubensworks
  • rubenverborgh
  • dexagod