Created
April 26, 2017 15:30
-
-
Save r00takaspin/0b6ce6f0ddcf183900767f654b6e9a16 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
some_function(From) -> From ! { reply, "Greetings" } end. | |
P = spawn(some_function(self())), | |
receive | |
{reply, Msg} -> Msg, | |
Msg -> io:format("~p~n", [Msg]) | |
after 5000 -> timeout | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment