<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pekko1215</author_name>
  <author_url>https://blog.hatena.ne.jp/pekko1215/</author_url>
  <blog_title>ヒデホヒのおもちゃばこ</blog_title>
  <blog_url>https://pekko1215.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>動作イメージ /* サブクラス「echoPromise」のクラス定義 new echoPromise(arg)をすると、3秒後にthenにargが帰ってくる */ (async function(){ console.log(await new echoPromise(&quot;にゃん&quot;)); })() // 3秒後ににゃんと表示したい はじめは誰しもこんな感じの定義がしたいはず class echoPromise extends Promise{ constructor(arg){ super(resolve=&gt;{ setTimeout(()=&gt;{ resolve(arg) },3000) }) }…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpekko1215.hatenablog.com%2Fentry%2F2018%2F09%2F06%2F232705&quot; title=&quot;Promiseのサブクラス (マニアック) - ヒデホヒのおもちゃばこ&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://cdn-ak.f.st-hatena.com/images/fotolife/p/pekko1215/20180906/20180906232303.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-09-06 23:27:05</published>
  <title>Promiseのサブクラス (マニアック)</title>
  <type>rich</type>
  <url>https://pekko1215.hatenablog.com/entry/2018/09/06/232705</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
