-module(helloworld).
-export([start/0]).
start() ->
Pid = spawn(fun() -> server("Hello") end),
Pid ! {hello}.
server(Message) ->
io:fwrite("~p",[Message]).
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266384.html
-module(helloworld).
-export([start/0]).
start() ->
Pid = spawn(fun() -> server("Hello") end),
Pid ! {hello}.
server(Message) ->
io:fwrite("~p",[Message]).
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266384.html