Skip to content

stream: make async iterator .next() always resolve - #24668

Closed
mcollina wants to merge 1 commit into
nodejs:masterfrom
mcollina:stream-iterator-fix
Closed

stream: make async iterator .next() always resolve#24668
mcollina wants to merge 1 commit into
nodejs:masterfrom
mcollina:stream-iterator-fix

Conversation

@mcollina

Copy link
Copy Markdown
Member

See: nodejs/readable-stream#387

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
Copy Markdown
Collaborator

@mcollina sadly an error occured when I tried to trigger a build :(

@reconbotreconbot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment threadtest/parallel/test-stream-readable-async-iterators.js Outdated
@mcollina

Copy link
Copy Markdown
MemberAuthor

}
assert.strictEqual(e, err);
})()]);
})();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: the Promise.all should be obsolete.


const b = r[Symbol.asyncIterator]();
const c = b.next();
const d = b.next();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggestion: verify that c and d are not done yet.

@mcollina

Copy link
Copy Markdown
MemberAuthor

Landed in fa1535a

@mcollina
mcollina deleted the stream-iterator-fix branch November 29, 2018 16:16
pullBot pushed a commit to SimenB/node that referenced this pull request Nov 29, 2018
See: nodejs/readable-stream#387
PR-URL: nodejs#24668
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
targos pushed a commit that referenced this pull request Nov 29, 2018
See: nodejs/readable-stream#387
PR-URL: #24668
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@BridgeARBridgeAR mentioned this pull request Dec 5, 2018
4 tasks
refack pushed a commit to refack/node that referenced this pull request Jan 14, 2019
See: nodejs/readable-stream#387
PR-URL: nodejs#24668
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
BethGriggs pushed a commit that referenced this pull request Feb 12, 2019
See: nodejs/readable-stream#387
PR-URL: #24668
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@BethGriggsBethGriggs mentioned this pull request Feb 12, 2019
rvagg pushed a commit that referenced this pull request Feb 28, 2019
See: nodejs/readable-stream#387
PR-URL: #24668
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@mcollina@nodejs-github-bot@reconbot@fhinkel@joyeecheung@devsnek@BridgeAR@BethGriggs