Skip to content

Instantly share code, notes, and snippets.

@Kavec
Created November 9, 2015 07:35
Show Gist options
  • Save Kavec/c153e46be4187f3777d3 to your computer and use it in GitHub Desktop.
Save Kavec/c153e46be4187f3777d3 to your computer and use it in GitHub Desktop.
test "blah" do
loop = fn f ->
receive do
:die -> exit(:normal)
end
f.(f)
end
y = fn f ->
fn ->
f.(f)
end
end
pid = spawn(y.(loop))
end
test "blah" do
loop = fn ->
receive do
:die -> exit(:normal)
end
fn.()
end
pid = spawn(loop)
end
test "blah" do
loop = fn ->
receive do
:die -> exit(:normal)
end
__FN__.()
end
pid = spawn(loop)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment