New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
序文: Promiseとは何か? #12
Comments
想定ユーザが知りたいです。 |
@kyo-ago あんまりちゃんと考えてないですが、 ES5の機能も積極的に使ったことはなくても、存在は知ってるぐらいのレベルとなってる気がします。 |
了解しましたー |
内容Promiseとは何かの簡単な概略を紹介する。
単純なコールバックに比べた場合 Node.jsの場合、非同期処理のコールバック関数は第一引数に function callback(error,res){
} ただし、これは仕様ではなく、コーディングルール的なものであるため、強制力があるわけではありません。 Promiseはこの非同期処理を表すオブジェクト(promiseオブジェクト)を導入する事で、 つまり、Promiseという統一されたインターフェースがあることで、 Promiseを学ぶ事で複雑な非同期処理等を上手くパターン化できるというのが、Promiseを使う理由? |
一番最初のPromiseとは何かについて
この書籍で扱う内容について #1 で書いた 書籍の目的 も組んで、Promiseとは何か、何に使えるのかについてを簡単に紹介する。
The text was updated successfully, but these errors were encountered: