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

Trailing value in auditTime #3325

Closed
ivan7237d opened this issue Feb 17, 2018 · 3 comments
Closed

Trailing value in auditTime #3325

ivan7237d opened this issue Feb 17, 2018 · 3 comments

Comments

@ivan7237d
Copy link

RxJS version:
6.0.0-alpha.3 (but would also work with previous versions)

Code to reproduce:

Rx.Observable.of(1)
  .concat(Rx.Observable.never())
  .auditTime(1000)
  .subscribe(console.log);

Expected behavior:
The same values should be emitted whether the second line .concat(Rx.Observable.never()) is present or not.

Actual behavior:
A value is emitted only when that line is present.

Additional information:
A completion of the source observable (of(1) or of(1).concat(Rx.Observable.never())) should not have any meaning beyond indicating that no more values will be emitted, so it shouldn't cause auditTime to drop the value.

@dengwanc
Copy link

dengwanc commented Mar 6, 2018

dose throttleTime have the same actual meaning with auditTime ? @benlesh

@deadbeef84
Copy link

We just ran into this issue. The behavior doesn't seem to be defined by the auditTime-spec either. We recently had a similar issue with throttleTime #3351.

@benlesh
Copy link
Member

benlesh commented Mar 15, 2018

Seems like a duplicate of #3430 and probably similar to #2859

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

No branches or pull requests

4 participants