<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>ES2015 (ES6)</anon>
    <anon>XHR</anon>
    <anon>Promise, async / await</anon>
  </categories>
  <description>前回までのあらすじ 非同期処理を平行に実行する場合はPromise.allやPromise.raceを使えばよいのですが、非同期処理で受け取った値を使って次の処理を行いたいなど順番(同期的)に実行したい場合のメモ Promise~thenでのメソッドチェーン たぶん一番正当なやり方。 Promiseオブジェクトを返す関数を実行してresolveされた時に実行されるthenメソッド内で、Promiseオブジェクトを返す関数をreturnすることで、Promise.prototype.thenのメソッドチェーンができる。 エラーになるとcatchに処理が流れる。 実行される関数 function …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2018%2F11%2F13%2F083000&quot; title=&quot;JavaScript (ES2015) 今更のPromise (3) 非同期処理を順番に実行するﾁｮｯﾄマニアックなメモ - かもメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://images-fe.ssl-images-amazon.com/images/I/61QRbWCoECL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-11-13 08:30:00</published>
  <title>JavaScript (ES2015) 今更のPromise (3) 非同期処理を順番に実行するﾁｮｯﾄマニアックなメモ</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2018/11/13/083000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
