<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xin9le</author_name>
  <author_url>https://blog.hatena.ne.jp/xin9le/</author_url>
  <blog_title>xin9le.net</blog_title>
  <blog_url>https://xin9le.hatenablog.jp/</blog_url>
  <categories>
    <anon>TPL</anon>
  </categories>
  <description>あるタスクが完了したあと、連続して別のタスクを実行したい場合があります。このとき、まず思い付くのは「最初に実行したタスクAを待機して、それから別のタスクBを開始する」でしょう。しかし、これでは結局呼び出し元スレッドをブロックすることになり、最初のタスクAが呼び出し元スレッドと並列に実行されている意味がなくなります。長い処理が行われる場合でもUIスレッドをブロックすることなく処理を進めることは、ユーザー体験の重要な項目のひとつです。そこで今回は、呼び出し元スレッドをブロックすることなく、タスクの完了とともに別のタスクを連続して実行する方法を紹介します。 継続実行 タスクを継続して実行するには、T…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxin9le.hatenablog.jp%2Fentry%2F2011%2F08%2F19%2F002113&quot; title=&quot;TPL入門 (10) - タスクの継続 - xin9le.net&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>2011-08-19 00:21:13</published>
  <title>TPL入門 (10) - タスクの継続</title>
  <type>rich</type>
  <url>https://xin9le.hatenablog.jp/entry/2011/08/19/002113</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
