Is there a way to verify that an erlang process has been indeed hibernated.
erlang:process_info/1
doesn't seem to provide this information and I can't think of anything else which might.
答案 0 :(得分:1)
以下是在Elixir中如何做同样的事情:
iex(2)> :erlang.process_info(pid, :current_function)
{:current_function, {:erlang, :hibernate, 3}}