Skip to content

Conversation

@devsnek
Copy link
Member

Closes: #23041

@nodejs/streams

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-botnodejs-github-bot added the stream Issues and PRs related to the stream subsystem. label Sep 23, 2018
@devsnekdevsnek added the experimental Issues and PRs related to experimental features. label Sep 23, 2018
@targos
Copy link
Member

Can you explain in the commit message the reason for the refactor and what the fixes are?

@devsnekdevsnekforce-pushed the refactor/readable-stream-async-iterator branch from a0f83a8 to ae8b7f8CompareSeptember 23, 2018 20:25
@devsnek
Copy link
MemberAuthor

Copy link
Member

@mcollinamcollina left a comment

Choose a reason for hiding this comment

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

Good work!

Can you add a test that shows that #23041 is fixed? I know it is, but the test would be more readable that way.

@devsnek
Copy link
MemberAuthor

@mcollina the lines i added to the test file are that

@mcollina
Copy link
Member

@devsnek I specifically mean:

This might be useful if you wanted to consume the first X chunks of a stream using await iterator.next() and then conditionally consume the rest with for await of.

This seems a valid use case to test anyway.

Copy link
Member

@jasnelljasnell left a comment

Choose a reason for hiding this comment

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

LGTM with @mcollina's nit addressed

@devsnekdevsnekforce-pushed the refactor/readable-stream-async-iterator branch from ae8b7f8 to 49eedb7CompareSeptember 24, 2018 00:02
@devsnek
Copy link
MemberAuthor

Copy link
Member

@mcollinamcollina left a comment

Choose a reason for hiding this comment

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

LGTM

@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Sep 24, 2018
@danbev
Copy link
Contributor

Re-run of failing node-test-commit-custom-suites-freestyle.

@devsnek
Copy link
MemberAuthor

Closes: nodejs#23041 - Rewrite `ReadableAsyncIterator` class into `ReadableStreamAsyncIteratorPrototype` which contains no constructor and inherits from `%AsyncIteratorPrototype%`. - Rewrite `AsyncIteratorRecord` into dumb function. PR-URL: nodejs#23042Fixes: nodejs#23041 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
@devsnekdevsnekforce-pushed the refactor/readable-stream-async-iterator branch from 49eedb7 to 8bce9e8CompareOctober 9, 2018 03:18
@devsnek
Copy link
MemberAuthor

landed in 8bce9e8

@devsnekdevsnek merged commit 8bce9e8 into nodejs:masterOct 9, 2018
@devsnekdevsnek deleted the refactor/readable-stream-async-iterator branch October 9, 2018 03:20
targos pushed a commit that referenced this pull request Oct 10, 2018
Closes: #23041 - Rewrite `ReadableAsyncIterator` class into `ReadableStreamAsyncIteratorPrototype` which contains no constructor and inherits from `%AsyncIteratorPrototype%`. - Rewrite `AsyncIteratorRecord` into dumb function. PR-URL: #23042Fixes: #23041 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
@targostargos mentioned this pull request Oct 10, 2018
jasnell pushed a commit that referenced this pull request Oct 17, 2018
Closes: #23041 - Rewrite `ReadableAsyncIterator` class into `ReadableStreamAsyncIteratorPrototype` which contains no constructor and inherits from `%AsyncIteratorPrototype%`. - Rewrite `AsyncIteratorRecord` into dumb function. PR-URL: #23042Fixes: #23041 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.experimentalIssues and PRs related to experimental features.streamIssues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@devsnek@nodejs-github-bot@targos@mcollina@danbev@apapirovski@jasnell@BridgeAR