Skip to content

Instantly share code, notes, and snippets.

@Ayoush
Created August 28, 2020 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ayoush/ccbe770ce9529eb871b8ebf93719fff4 to your computer and use it in GitHub Desktop.
Save Ayoush/ccbe770ce9529eb871b8ebf93719fff4 to your computer and use it in GitHub Desktop.
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