Just 'nil' might have lived long enough, 'receive' definitly does.
This commit is contained in:
@@ -18,7 +18,9 @@ defmodule Processes do
|
|||||||
end
|
end
|
||||||
|
|
||||||
koan "New processes are spawned functions" do
|
koan "New processes are spawned functions" do
|
||||||
value = spawn(fn -> nil end)
|
value = spawn(fn -> receive do
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
assert is_pid(value) == ___
|
assert is_pid(value) == ___
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user