Skip to content

Instantly share code, notes, and snippets.

@yfyf
Created January 25, 2013 13:55
Show Gist options
  • Save yfyf/4634624 to your computer and use it in GitHub Desktop.
Save yfyf/4634624 to your computer and use it in GitHub Desktop.
Receiver snippet
Pid = spawn(fun() -> F = fun (Fun) -> receive A -> erlang:display(A), Fun(Fun) end end, F(F) end).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment