<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kitak</author_name>
  <author_url>https://blog.hatena.ne.jp/kitak/</author_url>
  <blog_title>kitak blog</blog_title>
  <blog_url>https://kitak.hatenablog.jp/</blog_url>
  <categories>
    <anon>Dart</anon>
  </categories>
  <description>最近、お仕事で Dart を書いている。Dart では非同期処理を JavaScript の Promise に似た Future という概念で扱うことができて、複数の非同期処理を扱うには、JavaScript の Promise.all と同等な Future.wait という API が用意されている。 Future.wait の引数の配列の Future の型が同じ場合は問題ないが、異なる場合は共通の基底クラスにキャストされて型情報が失われてしまう(TypeScript の Promise.all でも同じはず)。 例えば、以下のようなコードで、callFoo が Future&lt;Foo&gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkitak.hatenablog.jp%2Fentry%2F2020%2F03%2F24%2F225520&quot; title=&quot;タイプセーフに Future.wait したい - kitak blog&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>2020-03-24 22:55:20</published>
  <title>タイプセーフに Future.wait したい</title>
  <type>rich</type>
  <url>https://kitak.hatenablog.jp/entry/2020/03/24/225520</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
