Slide 39
Slide 39 text
A B
GENSERVER.CALL/3
➤ Monitor the target
➤ Send the message tagged with the
monitor reference
➤ Receive
➤ {^ref, reply} ⇒
{:ok, reply}
➤ :DOWN ⇒ exit(reason)
➤ timeout ⇒ exit(:timeout)
{:ok, ref} = Process.monitor(b)
{:'$gen_call', {a, ref}, :hi}