# http://elixir-lang.org/ からコピペ parent = self() # Spawns an Elixir process (not an operating system one!) spawn_link(fn -> send parent, {:msg, "Hello World!"} end) # Block until the message is received receive do {:msg, contents} -> IO.puts contents end