-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
potential bug: wrap
now autostarting iterators that were previously not autostarted prior to optimisation work
#88
Comments
On buggy case that I encountered today is the following which blocks on the second line const iter = wrap(wrap([1, 2, 3], { autoStart: true }))
await iter.toArray() cc @jacoscaz |
Note that I slightly changed |
Given the conversation around #45, should we address this before that merge or after? |
I think before; this seems like a bug that we still want fixed in the current vminor. |
@jeswr I'm not sure that is related to AsyncIterator/asynciterator.ts Lines 2127 to 2128 in 915a857
However, with the current const iter = new TransformIterator([1, 2, 3])
const res = await iter.toArray(); Therefore, I think what's wrong here is:
Which is not to say that the premise of this issue is wrong. The default behavior if no |
Indeed; that is not supported. I would have expected the type system to catch it, and |
I think the issue is at line 2128 (see above), which is in the body of |
I think the intention of the original In any case, it does not seem like a regression because this would not have worked before the |
IMHO and looking very long-term, the |
In #45 I renamed it to |
In the case of I think it is better to force users to use the |
But we can't for backward compatibility reasons.
…and we probably don't want this kind of inheritance anymore, btw. I think we should do away with |
This suggestion was for the next vmajor |
Yes, buffering and transforms are orthogonal concerns and addressing them independently of one another might be a good idea. |
Placeholder - will try create a minimal example or debug tommorow :)
The text was updated successfully, but these errors were encountered: