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

ForkJoin not emit next if some of result is null #1362

Closed
acoshift opened this issue Feb 19, 2016 · 2 comments
Closed

ForkJoin not emit next if some of result is null #1362

acoshift opened this issue Feb 19, 2016 · 2 comments

Comments

@acoshift
Copy link

var rx = require('rx')
var rxjs = require('rxjs')

var a = rx.Observable.forkJoin(
  rx.Observable.just(10),
  rx.Observable.just(20),
  rx.Observable.just(null),
  rx.Observable.just(40)
)

a.subscribe(
  r => console.log('Rx Next: ' + r),
  err => console.log('Rx Error: ' + err),
  () => console.log('Rx Complete')
)

var b = rxjs.Observable.forkJoin(
  rxjs.Observable.of(50),
  rxjs.Observable.of(60),
  rxjs.Observable.of(null),
  rxjs.Observable.of(80)
)

b.subscribe(
  r => console.log('Rxjs Next: ' + r),
  err => console.log('Rxjs Error: ' + err),
  () => console.log('Rxjs Complete')
)

Result

Rx Next: 10,20,,40
Rx Complete
Rxjs Complete
@kwonoj
Copy link
Member

kwonoj commented Feb 19, 2016

Yes, seems this is unexpected behavior, confirmed none of values are emit as suggested code snippet. Let me try to spend some time to triage this one.

@lock
Copy link

lock bot commented Jun 7, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
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 a pull request may close this issue.

2 participants