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

docs(combineLatest): add details about static version of operator #2351

Merged
merged 1 commit into from
Feb 21, 2017
Merged

docs(combineLatest): add details about static version of operator #2351

merged 1 commit into from
Feb 21, 2017

Conversation

mpodlasin
Copy link
Contributor

Description:

Yet another pr with more detailed documentation for operator.

I struggled to meaningfully describe what scheduler actually does with this operator. This is related to my issue here: #2350.

Irony is that I know how this operator behaves with different schedulers, but I have no idea how to describe it without going into implementation details (calling out ArrayObservable implementation and the fact that combineLatest subscribes to input Observables in its complete function). I would really appreciate some help or pointers here.

Other doc prs
#2322 - here is more background what do I do and why
#2326

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.689% when pulling 65f2f74 on Podlas29:static-combine-latest-docs into 31dfc73 on ReactiveX:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.689% when pulling 0092de8 on Podlas29:static-combine-latest-docs into 31dfc73 on ReactiveX:master.

@jayphelps
Copy link
Member

jayphelps commented Feb 14, 2017

I'm going to try to review this shortly. btw you might take a look at the reactivex docs as they usually contain excellent operator descriptions since it's mostly a sum of all Rx implementations. http://reactivex.io/documentation/operators/combinelatest.html There's no harm in boosting some (or all) of their descriptions.

Just note that, while rare, RxJS sometimes has differing semantics of certain operators.

* corresponding to order of passed Observables (value from the first Observable
* on the first place and so on).
*
* Static version of `combineLatest` accepts either an array of Observables
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the static version of combineLatest be documented along side of that code? This file is for the member method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure? This is observable directory, where are all functions that land on Observable. Unless we understand static differently?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Blesh this JSDoc is for the static, as you can see down there we have the tag @static true which instructs ESDoc when generating the site.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@staltz @Podlas29 right you are. 👍

Add more about when combineLatest emits, completes and errors.
Add information about different ways it can be called and different
paramteres it accepts. Provides examples of different ways operator
can be called.
@coveralls
Copy link

coveralls commented Feb 17, 2017

Coverage Status

Coverage remained the same at 97.688% when pulling aade13b on Podlas29:static-combine-latest-docs into 1f78345 on ReactiveX:master.

@benlesh benlesh merged commit f685440 into ReactiveX:master Feb 21, 2017
@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants