Skip to content

Instantly share code, notes, and snippets.

@Ayoush
Created August 28, 2020 09:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
iex(1)> spawn(fn -> :rand.uniform(10) end)
#PID<0.170.0
iex(8)> pid = spawn(fn -> :rand.uniform(10) end)
#PID<0.172.0>
iex(9)> Process.alive?(pid)
false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment