1 2 3 4 5 6 7 8 9 10 11 12 13
-module(yes_2). -compile(export_all). ?MODULE() -> ok. f(Pid, Msg) -> Ref = make_ref(), Pid ! Msg, receive {Ref,Reply} -> Reply end.