blob: c1df273b60e7f26e1ab227c23c9a721396924fd3 (
plain) (
tree)
|
|
-module(complex4).
-export([foo/1, bar/1]).
foo(X) ->
call_cnode({foo, X}).
bar(Y) ->
call_cnode({bar, Y}).
call_cnode(Msg) ->
{any, '[email protected]'} ! {call, self(), Msg},
receive
{cnode, Result} ->
Result
end.
|