dotnet / reactive

The Reactive Extensions for .NET
http://reactivex.io
MIT License
6.68k stars 749 forks source link

Fix Union Dispose bug #2112 #2131

Closed idg10 closed 3 months ago

idg10 commented 3 months ago

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.)