Processes / Concurrency
Spawn
spawn(fn() -> loop(50, 1) end) # loop defined up there
spawn(fn() -> loop(100, 50) end)
spawn(MODULE_NAME, FUNCTION_NAME, [ARGS])#alt
spawn_link(fn() -> :ok end) #spawn_link means if one process exits the other one will too(stops dangling p's)Message Passing
Process Investigate
Process Monitor
Last updated