Skip to content

Instantly share code, notes, and snippets.

@Ayoush

Ayoush/output.ex Secret

Created August 28, 2020 09:13
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/6da6b770edbaaa893b7243fecee8acd9 to your computer and use it in GitHub Desktop.
Save Ayoush/6da6b770edbaaa893b7243fecee8acd9 to your computer and use it in GitHub Desktop.
iex(1)> alias OtpConceptsProcesses
OtpConceptsProcesses
iex(2)> OtpConceptsProcesses.start_link
#PID<0.143.0>
iex(3)> pid = OtpConceptsProcesses.start_link
#PID<0.145.0>
iex(4)> send(pid, {:add, 5})
{:add, 5}
iex(5)> send(pid, {:remove, 6})
{:remove, 6}
iex(6)> send(pid, {})
{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment