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

Bug: delayWhen operator returns an Observable that does not complete. #2587

Closed
plul opened this issue May 3, 2017 · 1 comment · Fixed by #2589
Closed

Bug: delayWhen operator returns an Observable that does not complete. #2587

plul opened this issue May 3, 2017 · 1 comment · Fixed by #2589
Labels
bug Confirmed bug

Comments

@plul
Copy link

plul commented May 3, 2017

RxJS version:
5.3.0

Code to reproduce:

Rx.Observable.of('foo')
  .delayWhen(function() {
    return Rx.Observable.of('bar');
  })
  .subscribe({
    next: function(x) {
      console.log('next');
    },
    complete: function() {
      console.log('complete');
    }
  });

Expected behavior:
Output
'next'
'complete'

Actual behavior:
Output
'next'

Additional information:
If you substitute delayWhen(...) for say delay(1000) in the above, it will emit complete as expected.

Here is a jsFiddle using https://unpkg.com/rxjs/bundles/Rx.min.js showcasing the issue.

@lock
Copy link

lock bot commented Jun 6, 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 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Confirmed bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants