RubenVerborgh / AsyncIterator

An asynchronous iterator library for advanced object pipelines in JavaScript
https://rubenverborgh.github.io/AsyncIterator/docs/
Other
46 stars 7 forks source link

Feat: Make asynciterator asynciterable #89

Closed jeswr closed 7 months ago

jeswr commented 2 years ago

In particular this logic https://github.com/LDflex/LDflex-Comunica/blob/f01ece6fa8cee720061efd5ddd23ed82921555e4/src/ComunicaEngine.ts#L158-L215 should be implemented as the [Symbol.asyncIterator] method of AsyncIterator

jacoscaz commented 2 years ago

This would be very convenient, although we should also carefully measure differences in performance and highlight them in README.md as refactoring from one approach to the other is likely a non-trivial effort.

rubensworks commented 2 years ago

Related to #56