でプロセスを産卵私は、2つの方法を使用してエリキシルでプロセスを生み出し:はエリキシル
defmodule Second do
def called do
raise "oops"
end
end
spawn(Second.called)
** (RuntimeError) oops
second.exs:3: Second.called/0
spawn(Second,:called,[])
#PID<0.89.0>
iex(2)> 17:42:40.999 [error] Process #PID<0.89.0> raised an exception
** (RuntimeError) oops
二つの方法の違いは何ですか?なぜ、2番目のプロセスIDだけがプロセスIDを返し、最初のIDを返さないのでしょうか?ありがとう