<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>khibino0</author_name>
  <author_url>https://blog.hatena.ne.jp/khibino0/</author_url>
  <blog_title>khibino blog</blog_title>
  <blog_url>https://khibino.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>GHC (Haskell) では、軽量スレッドを利用することで並行処理のプログラムを非常に手軽に記述できます。しかし、この強力な機能を素直に利用すると、思わぬ落とし穴にはまることがあります。 特に注意が必要なのが、Control.Concurrent モジュールの killThread :: ThreadId -&gt; IO () や、 Control.Concurrent.Async モジュールの cancel :: Async a -&gt; IO ()x の利用です。これらは対象の軽量スレッドに対して非同期例外を発生させ、実行中の IO アクションを強制的に中断させます。 本記事では、ネットワーク…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkhibino.hatenadiary.jp%2Fentry%2F2026%2F03%2F31%2F011705&quot; title=&quot;非同期例外を境界スレッドで切り離す - khibino 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>2026-03-31 01:17:05</published>
  <title>非同期例外を境界スレッドで切り離す</title>
  <type>rich</type>
  <url>https://khibino.hatenadiary.jp/entry/2026/03/31/011705</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
