You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a big fan of async generators I would love to see some support from the @thi.ng/transducers package.
Conceptually they are not too far from normal iterators anyway so I hope this feature is possible.
Iterators
Async iterators
Object method to provide iterator
Symbol.iterator
Symbol.asyncIterator
next() return value is
any value
Promise
to loop, use
for..of
for await..of
Example usage: NodeJS - simple directory recursion
Just a quick one: There's a 3.5 year old branch for async transducers. I stopped with it due to widespread lack of async/await support back then. I've been meaning to revisit it for a while, just no bandwidth so far. If you're interested in taking a peek:
As a big fan of async generators I would love to see some support from the @thi.ng/transducers package.
Conceptually they are not too far from normal iterators anyway so I hope this feature is possible.
Example usage: NodeJS - simple directory recursion
Example usage: Alternating URL fetch
The text was updated successfully, but these errors were encountered: