Title: promise封装setInterval · Issue #2 · LSP-XA/fe-Involution · GitHub
Open Graph Title: promise封装setInterval · Issue #2 · LSP-XA/fe-Involution
X Title: promise封装setInterval · Issue #2 · LSP-XA/fe-Involution
Description: const wrapAsyncFn = function() { return new Promise((resovle,reject)=>{ let result = 0; setInterval(()=>{ result++; resovle(result) },1000); }) } wrapAsyncFn().then(res => { // 我全都要 console.log(res) })
Open Graph Description: const wrapAsyncFn = function() { return new Promise((resovle,reject)=>{ let result = 0; setInterval(()=>{ result++; resovle(result) },1000); }) } wrapAsyncFn().then(res => { // 我全都要 console.log(res...
X Description: const wrapAsyncFn = function() { return new Promise((resovle,reject)=>{ let result = 0; setInterval(()=>{ result++; resovle(result) },1000); }) } wrapAsyncFn().then(res => { // 我全都要 consol...
Opengraph URL: https://github.com/LSP-XA/fe-Involution/issues/2
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"promise封装setInterval","articleBody":"```javascript\r\nconst wrapAsyncFn = function() {\r\n return new Promise((resovle,reject)=\u003e{\r\n let result = 0;\r\n setInterval(()=\u003e{\r\n result++;\r\n resovle(result)\r\n },1000);\r\n })\r\n}\r\n\r\nwrapAsyncFn().then(res =\u003e {\r\n // 我全都要\r\n console.log(res)\r\n})\r\n```\r\n","author":{"url":"https://github.com/orozot","@type":"Person","name":"orozot"},"datePublished":"2021-06-22T08:25:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2/fe-Involution/issues/2"}
| 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:a54b2fff-106a-ea0e-32c9-73ad5c5ff813 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA88:F4108:8D167E:B80EBF:698D6118 |
| html-safe-nonce | cce22399476b823aaf63208a06a8c0abd0beb982db38aa17ef1483afe914495e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTg4OkY0MTA4OjhEMTY3RTpCODBFQkY6Njk4RDYxMTgiLCJ2aXNpdG9yX2lkIjoiNTUwMjY1MzgyMjk5NDgzMzY4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c724d77e87d87faa4849f049c510757262bbb1a8a6bd0b87cb0bc1bc3d616339 |
| hovercard-subject-tag | issue:926971252 |
| 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/LSP-XA/fe-Involution/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a373a9b5784496e3846e37c9e8cab2bd2555a8e5e9541293c5cae7425705fb5b/LSP-XA/fe-Involution/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a373a9b5784496e3846e37c9e8cab2bd2555a8e5e9541293c5cae7425705fb5b/LSP-XA/fe-Involution/issues/2 |
| og:image:alt | const wrapAsyncFn = function() { return new Promise((resovle,reject)=>{ let result = 0; setInterval(()=>{ result++; resovle(result) },1000); }) } wrapAsyncFn().then(res => { // 我全都要 console.log(res... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | orozot |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| turbo-cache-control | no-preview |
| go-import | github.com/LSP-XA/fe-Involution git https://github.com/LSP-XA/fe-Involution.git |
| octolytics-dimension-user_id | 76473284 |
| octolytics-dimension-user_login | LSP-XA |
| octolytics-dimension-repository_id | 360762000 |
| octolytics-dimension-repository_nwo | LSP-XA/fe-Involution |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 360762000 |
| octolytics-dimension-repository_network_root_nwo | LSP-XA/fe-Involution |
| 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 | a95a17cc440c14d4fcddc0641bc1136fa8d908f0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width