Title: question during translating async/await · Issue #1548 · javascript-tutorial/en.javascript.info · GitHub
Open Graph Title: question during translating async/await · Issue #1548 · javascript-tutorial/en.javascript.info
X Title: question during translating async/await · Issue #1548 · javascript-tutorial/en.javascript.info
Description: Hi, I'm translating http://javascript.info/async-await. If await gets a non-promise object with .then, it calls that method providing native functions resolve, reject as arguments. Then await waits until one of them is called (in the exa...
Open Graph Description: Hi, I'm translating http://javascript.info/async-await. If await gets a non-promise object with .then, it calls that method providing native functions resolve, reject as arguments. Then await waits...
X Description: Hi, I'm translating http://javascript.info/async-await. If await gets a non-promise object with .then, it calls that method providing native functions resolve, reject as arguments. Then await w...
Opengraph URL: https://github.com/javascript-tutorial/en.javascript.info/issues/1548
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"question during translating async/await","articleBody":"Hi, I'm translating http://javascript.info/async-await.\r\n\r\nIf `await` gets a non-promise object with `.then`, it calls that method providing **native functions** `resolve`, `reject` as arguments. Then `await` waits until one of them is called (in the example above it happens in the line `(*)`) and then proceeds with the result.\r\n\r\nI wonder what native functions mean here. alert and setTimeout? or resolve and reject?\r\n\r\n","author":{"url":"https://github.com/Violet-Bora-Lee","@type":"Person","name":"Violet-Bora-Lee"},"datePublished":"2019-10-29T20:38:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1548/en.javascript.info/issues/1548"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a9672b2d-a6c5-af11-a2b7-e4d479aed22b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D5AA:2A07B7:8FF81B2:BA38DD2:69760484 |
| html-safe-nonce | 16d946275748ac5aea280cc838a214381d59bc10b85efba643e3dccac48eaeba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUFBOjJBMDdCNzo4RkY4MUIyOkJBMzhERDI6Njk3NjA0ODQiLCJ2aXNpdG9yX2lkIjoiNDYxMTY3NjYyNzEwMzI1MzYzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 73b0f2e104c9777be02b2f2f9c2d2306ad35077a7c977fd6725b8ec1fef9b9d1 |
| hovercard-subject-tag | issue:514207940 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/javascript-tutorial/en.javascript.info/1548/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4f59e1ef49032884be93da6526e9ffe5bc966ae6d3f218a83a72abadb19af3ef/javascript-tutorial/en.javascript.info/issues/1548 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4f59e1ef49032884be93da6526e9ffe5bc966ae6d3f218a83a72abadb19af3ef/javascript-tutorial/en.javascript.info/issues/1548 |
| og:image:alt | Hi, I'm translating http://javascript.info/async-await. If await gets a non-promise object with .then, it calls that method providing native functions resolve, reject as arguments. Then await waits... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Violet-Bora-Lee |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6814b4cc7afd45cd6e64525d0cff0e76dd802f315a5b0e55a7abda1d1d070d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/javascript-tutorial/en.javascript.info git https://github.com/javascript-tutorial/en.javascript.info.git |
| octolytics-dimension-user_id | 49552305 |
| octolytics-dimension-user_login | javascript-tutorial |
| octolytics-dimension-repository_id | 93253246 |
| octolytics-dimension-repository_nwo | javascript-tutorial/en.javascript.info |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 93253246 |
| octolytics-dimension-repository_network_root_nwo | javascript-tutorial/en.javascript.info |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4ea235bfed58ef16c8a5642b3ac64b74f10c9f52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width