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

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

Offen
#3,091 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
HTML
Sterne
25.5k
Forks
4k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, den Tutorial-Abschnitt zu asynchronem JavaScript und der Ereignisschleife zu finden; im Issue wird keine Datei oder kein Test genannt. Überprüfe die bestehende Erklärung und plane anschließend eine ausführlichere Behandlung von Laufzeitumgebungen, Warteschlangen, Web APIs, fetch und async/await mit visuellen Beispielen. Als abgeschlossen gilt die Aufgabe, wenn der Abschnitt die angeforderten Themen umfassend erklärt, ohne oberflächlich zu bleiben.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
documentation
Issue-Typ
Dokumentation
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.