{"id":34273,"date":"2019-10-31T21:57:22","date_gmt":"2019-10-31T18:57:22","guid":{"rendered":"https:\/\/prohoster.info\/blog\/asinhronnoe-programmirovanie-polnyj-kurs\/"},"modified":"2019-10-31T21:57:22","modified_gmt":"2019-10-31T18:57:22","slug":"asinhronnoe-programmirovanie-polnyj-kurs","status":"publish","type":"post","link":"https:\/\/prohoster.info\/sv\/blog\/news\/asinhronnoe-programmirovanie-polnyj-kurs","title":{"rendered":"Asynkront programmering (fullst\u00e4ndig kurs)","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><noindex><a rel=\"nofollow\" href=\"https:\/\/www.youtube.com\/playlist?list=PLHhi8ymDMrQZ0MpTsmi54OkjTbo0cjU1T\"><img decoding=\"async\" alt=\"Asynkront programmering (fullst\u00e4ndig kurs)\" src=\"\/wp-content\/uploads\/2019\/05\/05e2e5ca44a35d173d006faafd6d18c0.png\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><\/p>\n<p><\/p>\n<p>Asynkront programmering har under den senaste tiden blivit minst lika utvecklat som klassisk parallell programmering, och inom JavaScript-v\u00e4rlden, b\u00e5de i webbl\u00e4sare och i Node.js, har f\u00f6rst\u00e5elsen av dess tekniker blivit central f\u00f6r utvecklarnas v\u00e4rdegrund. Jag presenterar f\u00f6r er en helhet och den mest omfattande kursen med f\u00f6rklaringar av alla vanliga metoder f\u00f6r asynkront programmering, adaptrar mellan dem och hj\u00e4lpfunktioner. Den best\u00e5r nu av 23 f\u00f6rel\u00e4sningar, 3 presentationer och 28 arkiv med ett flertal kodexempel p\u00e5 GitHub. Totalt cirka 17 timmar video: <noindex><a rel=\"nofollow\" href=\"https:\/\/www.youtube.com\/playlist?list=PLHhi8ymDMrQZ0MpTsmi54OkjTbo0cjU1T\">l\u00e4nk till spellistan<\/a><\/noindex>.<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h4 id=\"poyasneniya-k-sheme\">F\u00f6rklaringar till diagrammet<\/h4>\n<p><\/p>\n<p>I diagrammet (ovan) visas samband mellan olika s\u00e4tt att arbeta med asynkronitet. De f\u00e4rgade blocken r\u00f6r asynkront programmering, medan svart-vita illustrerar metoder f\u00f6r parallell programmering (semaforer, mutexer, barri\u00e4rer osv.) och Petri-n\u00e4t, som, precis som asynkront programmering och akt\u00f6rsmodellen, \u00e4r olika angreppss\u00e4tt f\u00f6r att implementera parallella ber\u00e4kningar (de ges i diagrammet endast f\u00f6r att tydligare best\u00e4mma platsen f\u00f6r asynkront programmering). Akt\u00f6rsmodellen \u00e4r relaterad till asynkront programmering eftersom implementationen av akt\u00f6rer utan flertr\u00e5dsanv\u00e4ndning ocks\u00e5 har r\u00e4tt att existera och hj\u00e4lper till att strukturera asynkront kod. Den streckade linjen kopplar h\u00e4ndelser och den konkurrerande k\u00f6n till callbacks, eftersom dessa abstraktioner grundar sig p\u00e5 callbacks, men \u00e4nd\u00e5 formar kvalitativt nya angreppss\u00e4tt.<\/p>\n<p><\/p>\n<h4 id=\"temy-lekciy\">F\u00f6rel\u00e4sningens \u00e4mnen<\/h4>\n<p><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/hY6Z6qNYzmc\">1. Asynkront programmering (\u00f6versikt)<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/LK2jveAnRNg\">2. Timers, tidsgr\u00e4nser och EventEmitter<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/z8Hg6zgi3yQ\">3. Asynkront programmering med callbacks<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/wYA2cIRYLoA\">4. Icke-blockerande asynkron iterering<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/XQ94wQc-erU\">5. \u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0441\u0442\u044c \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 async.js<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/RMl4r6s1Y8M\">6. Asynkronitet med promises<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/Jdf_tZuJbHI\">7. Asynkrona funktioner och felhantering<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/76k6_YkYRmU\">8. Asynkrona adaptrar: promisify, callbackify, asyncify<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/tgodt1JL6II\">9. Asynkrona datakollektorer<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/1Ml5NE2fsZ8\">10. Ohanterade fel i promises<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/pfiHTx3j87Y\">11. Problemet med asynkrona stacktraces<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/kvNm9D32s8s\">12. Generatorer och asynkrona generatorer<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/rBGFlWpVpGs\">13. Iterators och asynkrona iterators<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/T8fXlnqI4Ws\">14. Avbr\u00e4ck av asynkrona operationer<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/3ZCrMlMpOrM\">15. Asynkront sammans\u00e4ttning av funktioner<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/DXp__1VNIvI\">16. Thenable och l\u00e4ttvikts await<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/Lg46AH8wFvg\">17. Konkurrerande asynkron k\u00f6<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/leR5sXRkuJI\">18. \u00d6ppen konstruktorm\u00f6nster (Revealing Constructor)<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/22ONv3AGXdk\">19. Future: Asynkronitet med framtidsobjekt utan tillst\u00e5nd<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/a2fVA1o-ovM\">20. Deferred: Asynkronitet med deferreds med tillst\u00e5nd<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/xp5MVKEqxY4\">21. Akt\u00f6rmodell (Actor Model)<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/_bFXuLcXoXg\">22. Observer-m\u00f6nster (Observer + Observable)<\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/0kcpMAl-wfE\">23. Asynkronitet med RxJS och h\u00e4ndelsefl\u00f6den<\/a><\/noindex><\/p>\n<p><\/p>\n<p>Under varje video finns l\u00e4nkar till repositoryn med kodexempel som behandlas i videon. Jag har f\u00f6rs\u00f6kt visa att man inte beh\u00f6ver reducera allt till en enda abstraktion av asynkronitet. Det finns ingen universell metod f\u00f6r asynkronitet, och f\u00f6r varje situation kan man v\u00e4lja de metoder som g\u00f6r att man kan skriva kod mer naturligt f\u00f6r denna specifika uppgift. Sj\u00e4lvklart kommer denna kurs att kompletteras, och jag ber alla att f\u00f6resl\u00e5 nya teman och bidra med kodexempel. Kursens huvudsyfte \u00e4r att visa hur man bygger upp asynkronitetsabstraktioner inifr\u00e5n, snarare \u00e4n att bara l\u00e4ra sig att anv\u00e4nda dem. N\u00e4stan alla abstraktioner kommer inte fr\u00e5n bibliotek utan ges i deras enklaste implementation och granskas steg f\u00f6r steg.<\/p>\n<p class=\"for_users_only_msg\">Endast registrerade anv\u00e4ndare kan delta i omr\u00f6stningen. <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/auth\/login\/\">Logga in<\/a><\/noindex>, tack.<\/p>\n<h2 class=\"default-block__polling-title\">Vad tycker du om kursen?<\/h2>\n<ul class=\"content-list content-list_polling\">\n<li class=\"content-list__item content-list__item_polling\">\n<p>                    Jag ska se hela kursen<\/p>\n<\/li>\n<li class=\"content-list__item content-list__item_polling\">\n<p>                    Jag ska se utvalda delar<\/p>\n<\/li>\n<li class=\"content-list__item content-list__item_polling\">\n<p>                    Jag \u00e4r n\u00f6jd med ett angreppss\u00e4tt<\/p>\n<\/li>\n<li class=\"content-list__item content-list__item_polling\">\n<p>                    Jag kommer att bidra till kursen<\/p>\n<\/li>\n<li class=\"content-list__item content-list__item_polling\">\n<p>                    Jag \u00e4r inte intresserad av asynkronitet<\/p>\n<\/li>\n<\/ul>\n<p>    8 anv\u00e4ndare har r\u00f6stat. 1 anv\u00e4ndare avstod.<br \/>\n<br \/>K\u00e4lla: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/452974\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u0442\u0430\u043b\u043e \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0440\u0430\u0437\u0432\u0438\u0442\u044b\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c, \u0447\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0430 \u0432 \u043c\u0438\u0440\u0435 JavaSript, \u043a\u0430\u043a \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445, \u0442\u0430\u043a \u0438 \u0432 Node.js, \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0435\u0433\u043e \u043f\u0440\u0438\u0435\u043c\u043e\u0432 \u0437\u0430\u043d\u044f\u043b\u043e \u043e\u0434\u043d\u043e \u0438\u0437 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0435\u0441\u0442 \u0432 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0438\u0440\u043e\u0432\u043e\u0437\u0437\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u044b\u0439 \u0438 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u0443\u0440\u0441 \u0441 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435\u043c \u0432\u0441\u0435\u0445 \u0448\u0438\u0440\u043e\u043a\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":25850,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-34273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/sv\/blog\/news\/asinhronnoe-programmirovanie-polnyj-kurs\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<meta property=\"og:locale\" content=\"sv_SE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (\u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u0443\u0440\u0441) | ProHoster\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/sv\/blog\/news\/asinhronnoe-programmirovanie-polnyj-kurs\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T18:57:22+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T18:57:22+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Asynkront programmering (fullst\u00e4ndig kurs) | ProHoster","description":"","canonical_url":"https:\/\/prohoster.info\/sv\/blog\/news\/asinhronnoe-programmirovanie-polnyj-kurs","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"sv_SE","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (\u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u0443\u0440\u0441) | ProHoster","og:url":"https:\/\/prohoster.info\/sv\/blog\/news\/asinhronnoe-programmirovanie-polnyj-kurs","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T18:57:22+00:00","article:modified_time":"2019-10-31T18:57:22+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"34273","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-21 18:33:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 02:25:30","updated":"2026-01-21 18:33:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/sv\/wp-json\/wp\/v2\/posts\/34273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/sv\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/sv\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sv\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sv\/wp-json\/wp\/v2\/comments?post=34273"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/sv\/wp-json\/wp\/v2\/posts\/34273\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sv\/wp-json\/wp\/v2\/media\/25850"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sv\/wp-json\/wp\/v2\/media?parent=34273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sv\/wp-json\/wp\/v2\/categories?post=34273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sv\/wp-json\/wp\/v2\/tags?post=34273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}