Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

docs(operators): add documentation for bufferWhen#236

Merged
sumitarora merged 7 commits intoReactiveX:masterfrom
DiedrikDM:docs-transformation-bufferWhen
Feb 5, 2018
Merged

docs(operators): add documentation for bufferWhen#236
sumitarora merged 7 commits intoReactiveX:masterfrom
DiedrikDM:docs-transformation-bufferWhen

Conversation

@DiedrikDM
Copy link
Contributor

Add documentation for operator bufferWhen to close #113

#113

@DiedrikDM DiedrikDM changed the title docs(operations): add documentation for bufferWhen to close #113 docs(operations): add documentation for bufferWhen Jan 19, 2018
@DiedrikDM
Copy link
Contributor Author

DiedrikDM commented Jan 20, 2018

Apparently when Travis is currently trying to build the application there is a module "@ angular-devkit/core" missing from the list. I believe this is caused by the angular cli, but can easily be solved by including the missing module as a devDependency.

Add dependency for @angular-devkit/core to fix the Travis CI build
@codecov-io
Copy link

codecov-io commented Jan 20, 2018

Codecov Report

Merging #236 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #236   +/-   ##
=======================================
  Coverage   77.14%   77.14%           
=======================================
  Files          15       15           
  Lines         175      175           
  Branches        7        7           
=======================================
  Hits          135      135           
  Misses         40       40

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 494bfa2...2b3b5f4. Read the comment docs.

@DiedrikDM DiedrikDM changed the title docs(operations): add documentation for bufferWhen docs(operators): add documentation for bufferWhen Jan 21, 2018
Diedrik De Mits added 2 commits January 24, 2018 13:39
As an temporary solution I added @angular-devkit/core as a devDependency to solve the build issues
from Travis. However, I now changed the package.json to include the latest angular-cli version (to
1.6.5) and this allows Travis to build correctly. I find this a better solution than the previous
one
The related operators was listing windowTime, but instead should be listing windowWhen
package.json Outdated
},
"devDependencies": {
"@angular/cli": "1.6.0",
"@angular/cli": "1.6.5",
Copy link
Collaborator

Choose a reason for hiding this comment

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

CLI update is another PR too. Could you remove it from the other one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sumitarora Just to be sure: I understood this comment correctly to leave the CLI update in this PR but modify the other ones so they don't include it anymore right?

map(e => {return {x: e.clientX, y: e.clientY};}),
bufferWhen(() => interval(1000 + Math.random() * 4000))
)
buffered$.subscribe(x => console.log(x));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add expected output for jsbin.

Added comment in the documentation as requested to contain the expected console output. Removed the
$ suffix from the examples for now for consistency (wait for coding guidelines).
The expected console output should be after the subscription. Also deleted the generics from the
method signature.
@sumitarora sumitarora merged commit e35106b into ReactiveX:master Feb 5, 2018
@DiedrikDM DiedrikDM deleted the docs-transformation-bufferWhen branch February 6, 2018 13:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add docs for operator : transformation - bufferWhen

4 participants