blob: 28efc542aead3bef9d15568ae1f909ddfff143f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
-module(yes_3).
-compile(export_all).
?MODULE() ->
ok.
f(Pid, Msg) ->
Ref = make_ref(),
do_send(Pid, Msg),
receive
{Ref,Reply} ->
Reply
end.
do_send(Pid, Msg) ->
Pid ! Msg.
|