javascript-tutorial / javascript-tutorial/en.javascript.info

The explanation on how asynchronous javascript works should be more in-depth

未關閉
#3,091 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
HTML
星號
25.5k
分支
4k
PR 合併指標
30 天內沒有已合併 PR

描述

Asynchronous javascript and the event loop are probably some of the most important topics to learn when delving into the more complex aspects of javascript. However, for some reason, 90% of tutorials and such that you can find online are extremely shallow about this topic, if not completely misleading. I don't think this one is misleading, but it's definitely shallow, which is a pity considering that about 90% of javascript.info is great and super in-depth. I think you should explain more thoroughly and with more visual exaples how the runtime environment works (the engine, the web APIs, macro-task and micro-task queue), how calls to web APIs use separate threads (preferably with examples, like what happens in the event loop and runtime environment when i use fetch?), how exactly async/await works (the function's execution is synchronous until the first await, and then it basically acts as if the remaining code in the function exists in a .then callback) and so on. I feel like if someone can do it, it's you guys, i have faith in you.

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先定位關於非同步 JavaScript 和事件迴圈的教學區段;issue 中沒有指定檔案或測試。檢視現有說明,接著規劃使用視覺化範例更深入地涵蓋執行環境、佇列、Web APIs、fetch 和 async/await。完成的標準是該區段完整說明所要求的主題,不再停留於表面。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
documentation
Issue 類型
文件
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。