Elixir は標準ライブラリに Registry が含まれている。どんなことができるかは Registryについて を読むとわかる。2020-02-09時点の最新安定版Elixir1.10にて動作確認した。 Registry の公式ドキュメントにも Pub/Sub に使えるよと書いてあるのだけど、どんな感じになるのかサンプルだけだとわかりにくかったので、Pub に Registry、Sub に GenServer を使う実装を試した。 defmodule My.Sub do use GenServer, restart: :transient @pub My.Pub def start_link(topics) do GenServer.start_link(__MODULE__, topics) end def init(topics) do IO.puts("#{inspect(se
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く