<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mzp</author_name>
  <author_url>https://blog.hatena.ne.jp/mzp/</author_url>
  <blog_title>みずぴー日記</blog_title>
  <blog_url>https://mzp.hatenadiary.org/</blog_url>
  <categories>
    <anon>Erlang</anon>
    <anon>30分プログラム</anon>
  </categories>
  <description>30分プログラム、その582。Erlangでブロードキャスト。ふと、Erlangのメッセージ送信って一個のプロセスしか送れないから、複数のプロセスにメッセージを送るライブラリがあってもいいかな、と思ったので書いてみた。ふと、思っただけなので、特に意味も実用性もない。 使い方 example() -&gt; B0 = bcast:create(), B1 = bcast:add(B0,spawn(fun () -&gt; receive Msg -&gt; io:format(&quot;A: ~p~n&quot;,[Msg]) end end)), B2 = bcast:add(B1,spawn(fun () -&gt; receive…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20090513%2Fbcast&quot; title=&quot;Erlangでブロードキャスト - みずぴー日記&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>2009-05-13 00:00:00</published>
  <title>Erlangでブロードキャスト</title>
  <type>rich</type>
  <url>https://mzp.hatenadiary.org/entry/20090513/bcast</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
