lauantaina, kesäkuuta 14, 2008

Erlang process spawning solved

I did not understand how to use the one-parameter spawn call in Erlang. Later I was looking for a tutorial on socket programming in Erlang and came across this. Among other things, spawn/1 was also used in there. This is how I now start a second process in my first Erlang program:

Pid = spawn(fun () -> pinger() end)

It works!

Ei kommentteja: