Skip to content

Conversation

@idg10
Copy link
Collaborator

@idg10 idg10 commented Jun 18, 2024

Resolves #2112

If the first N inputs to Union produced no items, it would not dispose any of their enumerators. (Once one enumerator had produced at least one item, Union then got into a state where it would dispose further empty sources. The bug existed in the logic that looked for the first source to emit an item.)

@idg10 idg10 self-assigned this Jun 18, 2024
@idg10 idg10 merged commit 4f341fc into main Jun 19, 2024
@idg10 idg10 deleted the feature/2112-union-dispose-empty branch June 19, 2024 12:23
idg10 added a commit that referenced this pull request Jun 10, 2025
* Fix Union Dispose bug #2112
* Update Ix build to use .NET 8.0 SDK
* Align ref project names with assembly names (This seems to have become necessary in .NET SDK 8.0.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Union doesn't dispose enumerator for empty lists

3 participants