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

polish: do not repeat isPromise check #3793

Merged
merged 1 commit into from
Dec 14, 2022
Merged

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Dec 6, 2022

If a field resolves asynchronously, then it will always complete asynchronously.

Adds additional test cases to complete code coverage.

If a field resolves asynchronously, then it will always complete asynchronously.

Adds additional test cases to complete code coverage.
@netlify
Copy link

netlify bot commented Dec 6, 2022

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit 500b458
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/638f1c9121568a00095d41d7
😎 Deploy Preview https://deploy-preview-3793--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

@yaacovCR
Copy link
Contributor Author

yaacovCR commented Dec 6, 2022

This has been extracted from #3754.

@yaacovCR yaacovCR requested a review from a team December 6, 2022 20:23
@yaacovCR yaacovCR added the PR: polish 💅 PR doesn't change public API or any observed behaviour label Dec 6, 2022
@yaacovCR
Copy link
Contributor Author

yaacovCR commented Dec 6, 2022

The purpose of this PR is just to make the diff for #3754 smaller and to test to make sure where the speed improvements for #3754 are coming from. See #3754 (comment)

@IvanGoncharov IvanGoncharov merged commit 7fd1ddb into graphql:main Dec 14, 2022
yaacovCR added a commit that referenced this pull request Dec 14, 2022
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on #3793
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: polish 💅 PR doesn't change public API or any observed behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants