Maurizio Lupo

Results 16 comments of Maurizio Lupo

Changed node version from v0.10.24 to v0.11.13. First time worked. Second time I am getting exactly your output (252).

In this library you can see many examples of decorators used with asynchronous functions. https://github.com/sithmel/async-deco

If you consume an async iterable like this: https://github.com/bustle/streaming-iterables/blob/master/lib/parallel-map.ts#L28 you never fire "return" on the consumed iterable

The error case is one. You have also this case: https://github.com/bustle/streaming-iterables/blob/master/lib/merge.ts#L8 If the consumer doesn't finish to consume this iterator, the iterable in input is left unclosed.

you can find some extra info here: http://exploringjs.com/es6/ch_iteration.html#_closing-iterators-via-return

Example: ``` async function example() { const mergedIterable = merge(iterable1, iterable2, iterable3) for await (const item of mergedIterable) { if (item === x) { console.log('Found x') break // this fires...