<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>any-programming</author_name>
  <author_url>https://blog.hatena.ne.jp/any-programming/</author_url>
  <blog_title>何でもプログラミング</blog_title>
  <blog_url>https://any-programming.hatenablog.com/</blog_url>
  <categories>
    <anon>F#</anon>
  </categories>
  <description>F#にはアクターモデルを実現できるMailboxProcessorクラスが用意されています。基本的にはキューに積まれたメッセージを順に処理していくものですが、たまに特定のメッセージを先に処理したいときがあります。今回はMailboxProcessorで選択的に受信するよう実装してみたいと思います。 Erlangでの選択的受信 after 0 を利用して下記の様に記述されます。 important() -&gt; receive {Priority, Message} when Priority &gt; 10 -&gt; [Message | important()] after 0 -&gt; normal() e…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fany-programming.hatenablog.com%2Fentry%2F2018%2F04%2F11%2F102005&quot; title=&quot;F#のMailboxProcessorで選択的受信 - 何でもプログラミング&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>2018-04-11 10:20:05</published>
  <title>F#のMailboxProcessorで選択的受信</title>
  <type>rich</type>
  <url>https://any-programming.hatenablog.com/entry/2018/04/11/102005</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
