<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>espresso3389</author_name>
  <author_url>https://blog.hatena.ne.jp/espresso3389/</author_url>
  <blog_title>espresso3389の日記</blog_title>
  <blog_url>https://espresso3389.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>WPF</anon>
    <anon>Xamarin</anon>
    <anon>iOS</anon>
  </categories>
  <description>GUIのコードを書いていると、時間のかかる処理をやりたくなることは多々あると思うんですが、それを普通に実行しちゃうとGUIが固まりますよね。で、C#には、Taskという比較的簡単に使える道具がありまして、例えば、適当なスレッドで実行して、その結果だけを非同期で待つって感じのコードなら、 var result = await Task.Run(() =&gt; SomeHeavyCalculation()); という感じで、長時間ブロックしちゃう SomeHeavyCalculation なんて処理も簡単にバックグラウンドで実行出来ちゃいます。まぁ、単発の処理ならこれでほとんど解決。何にも問題なし。と…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fespresso3389.hatenablog.com%2Fentry%2F2016%2F08%2F09%2F022724&quot; title=&quot;Dispatcher とか Queue とかメッセージループとか - espresso3389の日記&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-08-09 02:27:24</published>
  <title>Dispatcher とか Queue とかメッセージループとか</title>
  <type>rich</type>
  <url>https://espresso3389.hatenablog.com/entry/2016/08/09/022724</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
