JavaScript徹底攻略 非同期処理編: Promise, async/awaitの仕組みと使い方

· インプレス NextPublishing
Ebook
244
Pages

About this ebook

JavaScriptの非同期処理を徹底解説します。非同期処理を扱ううえで欠かせない、コールバック関数、Promise、async/awaitの仕組みと使い方を基礎から高度な内容まで網羅することを目指しました。ECMAScript 2021対応です。
入門書ではあまり触れられることのない、次のような話題も扱います。
・Promiseのfulfillとresolveの違い
・イベントループとマイクロタスクキューの動作
・class構文によるPromiseのJavaScript実装
さらに、Promiseチェーンのさまざまな書き方、標準のPromiseの拡張のしかた、ジェネレーターによるasync/await的な非同期処理の扱いなど、知っておくと何かの役に立つかもしれない話題も含めました。
Promise,async/awaitがどのような仕組みで動いているのか興味はあるけど、仕様書を読むのはちょっと辛い…という人におすすめです。
【目次】
第1章 非同期処理
第2章 コールバック関数
第3章 Promise
第4章 Promiseチェーン
第5章 複数のPromiseオブジェクトを扱う
第6章 Promiseの仕組みと実装
第7章 Promiseの発展的な話題
第8章 async/await
第9章 async/awaitの発展的な話題

About the author

澁谷 真帆
プログラマー兼コンテンツ制作・編集者。デスクトップアプリ・Webサービスの開発や、デジタル・紙媒体のコンテンツ制作に携わる。使用プログラミング言語はJavaScript,C/C++,Perlなど。2018年よりJavaScript関連の同人誌を執筆。

Reading information

Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.