文件名称:phoenix_pubsub_example:使用不带phoenix的phoenix_pubsub的小示例代码
文件大小:11KB
文件格式:ZIP
更新时间:2024-06-07 23:34:09
Elixir
PubSub演示 演示如何在不使用phoenix的情况下运行 EventSubscriber.Supervisor.start_link() EventSubscriber.start_link([]) %Event {} |> Publisher.event() iex(1)> EventSubscriber.Supervisor.start_link() {:ok, #PID<0>} iex(2)> EventSubscriber.start_link([]) "EventSubscriber start_link" "EventSubscriber initing" "EventSubscriber subscribing" "EventSubscriber subscribed" "EventSubscriber subscribed" "EventS
【文件预览】:
phoenix_pubsub_example-master
----mix.lock(148B)
----.gitignore(48B)
----mix.exs(490B)
----LICENSE(1KB)
----README.md(803B)
----subl.sublime-workspace(30KB)
----config()
--------config.exs(1KB)
----lib()
--------publisher.ex(379B)
--------event_subscriber.ex(715B)
--------event_subscriber_supervisor.ex(464B)
--------event.ex(169B)
----test()
--------pub_sub_spike_test.exs(424B)
--------test_helper.exs(15B)