<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>puni-o</author_name>
  <author_url>https://blog.hatena.ne.jp/puni-o/</author_url>
  <blog_title>プログラムの事とか</blog_title>
  <blog_url>https://puni-o.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>基本は分かったつもりになっていても、相変わらず少し複雑になるとよくわからない私です。 C#にasync/awaitが追加されたのは何年前だったでしょうか。みなさん当たり前のように使っているとおもいます。 私だって使ってます。 static async Task&lt;bool&gt; IsEven(int num) { await Task.Delay(5000); return num % 2 == 0; } 上は5秒かけて入力値が偶数なのかを返す非同期の関数です。 コンソールアプリで static void Main(string[] args) { Task.Run(async () =&gt; { va…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpuni-o.hatenablog.com%2Fentry%2F2016%2F02%2F17%2F152551&quot; title=&quot;非同期処理の戻り値をまとめて待ちたい - プログラムの事とか&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>2016-02-17 15:25:51</published>
  <title>非同期処理の戻り値をまとめて待ちたい</title>
  <type>rich</type>
  <url>https://puni-o.hatenablog.com/entry/2016/02/17/152551</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
