Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.

Fixed TakeUntil to respect official definition: "discard any items em… #269

Merged
merged 1 commit into from
Jul 16, 2018

Conversation

silphid
Copy link
Contributor

@silphid silphid commented Dec 19, 2017

According to the definition of TakeUntil(): "discard any items emitted by an Observable after a second Observable emits an item or terminates".In current implementation, TakeUntil() will only complete if an OnNext() is emitted on second observable, but NOT if that observable completes.That can be very problematic, especially if your logic assumes and relies on the official definition.

…itted by an Observable after a second Observable emits an item or terminates".

Previously, TakeUntil() would only complete if an OnNext() was emitted on second observable, but not if an OnCompleted() was emitted.
@neuecc neuecc merged commit ef94f52 into neuecc:master Jul 16, 2018
@silphid silphid deleted the TakeUntilPR branch July 16, 2018 19:19
EarMaster pushed a commit to EarMaster/UniRx that referenced this pull request Jun 12, 2019
Fixed TakeUntil to respect official definition: "discard any items em…
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants