Slide 10
Slide 10 text
ϊʔυͰࢼ͢ʢ̏ʣ
ผϊʔυͷϓϩάϥϜΛ࣮ߦ
% iex --sname three --cookie cookie1
iex(three@host_b)6> Hello.hello('bar')
** (UndefinedFunctionError) undefined function
Hello.hello/1 (module Hello is not available)
iex(three@host_b)3> Node.list
[:one@huracan, :two@huracan]
iex(three@host_b)4> Node.list |> Enum.map(fn(node) ->
...(three@host_b)4> Node.spawn_link(node, fn ->
...(three@host_b)4> Hello.hello('bar') end)
...(three@host_b)4> end)
Hello bar, in one@huracan
Hello bar, in two@huracan
[#PID<8193.132.0>, #PID<9717.84.0>]