Skip to content
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

Interleave eagerly calls GetEnumerator #729

Closed
Orace opened this issue Dec 12, 2019 · 0 comments · Fixed by #730
Closed

Interleave eagerly calls GetEnumerator #729

Orace opened this issue Dec 12, 2019 · 0 comments · Fixed by #730
Assignees
Labels
Milestone

Comments

@Orace
Copy link
Contributor

Orace commented Dec 12, 2019

As discussed here in #724, with current implementation of Interleave,
The code below throws:

var sequenceA = TestingSequence.Of(1);
var sequenceB = new BreakingSequence<int>();
var interleave = sequenceA.Interleave(sequenceB).Take(1).ToList();

While we can expect interleave to be a list of one element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants