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

Fix event source iterable #285

Merged
merged 2 commits into from
Apr 11, 2021
Merged

Fix event source iterable #285

merged 2 commits into from
Apr 11, 2021

Conversation

maguro
Copy link
Contributor

@maguro maguro commented Mar 1, 2021

This change fixes locked up event source iterable obervers which were
waiting for their channels to be closed. The event source iterable,
using a blocking strategy, could be notified that its context has been
canceled and exit without closing waiting observers' channels.

A deferred function which closes all observers was added to the event
source iterable's go routine, thus ensuring that all the observers'
channels were closed.

@coveralls
Copy link

coveralls commented Mar 1, 2021

Pull Request Test Coverage Report for Build 858

  • 21 of 25 (84.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+83.1%) to 83.145%

Changes Missing Coverage Covered Lines Changed/Added Lines %
iterable_eventsource.go 21 25 84.0%
Totals Coverage Status
Change from base Build 843: 83.1%
Covered Lines: 2792
Relevant Lines: 3358

💛 - Coveralls

This change fixes locked up event source iterable obervers which were
waiting for their channels to be closed.  The event source iterable,
using a blocking strategy, could be notified that its context has been
canceled and exit without closing waiting observers' channels.

A deferred function which closes all observers was added to the event
source iterable's go routine, thus ensuring that all the observers'
channels were closed.
@maguro maguro requested a review from teivah as a code owner March 23, 2021 00:40
@teivah teivah merged commit 7bab1e8 into ReactiveX:master Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants