-
-
Save Ayoush/6da6b770edbaaa893b7243fecee8acd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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