<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tksfj17</author_name>
  <author_url>https://blog.hatena.ne.jp/tksfj17/</author_url>
  <blog_title>学習帳</blog_title>
  <blog_url>https://tksfj17.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>一定時間後に関数を実行する目的で、setTimeout関数を使うと思います。 しかし、逐次処理を行いたいのに、非同期処理で実行されると思ったように動かないことがあります。非同期処理ではPromiseやasync/awaitを使うことで逐次処理を行えます。 ここではタイマーとしての使い方について、使い方を書いておきます。・Promiseやasync/await詳しくは以下を参照ください。 JavaScript Promiseの本 十六章第五回 Promise — JavaScript初級者から中級者になろう — uhyohyo.net 十六章第二十一回 async/await — JavaScr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftksfj17.hatenablog.com%2Fentry%2F2018%2F02%2F08%2F223350&quot; title=&quot;setTimeout関数でタイマーを作る - 学習帳&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-02-08 22:33:50</published>
  <title>setTimeout関数でタイマーを作る</title>
  <type>rich</type>
  <url>https://tksfj17.hatenablog.com/entry/2018/02/08/223350</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
