 
   Inlined by the compiler.
   """
-  @spec list :: [pid]
-  def list do
-    :erlang.processes()
-  end
+  @spec list() :: [pid]
+  defdelegate list(), to: :erlang, as: :processes
 
   @doc """
   Creates a link between the calling process and the given item (process or


  Inlined by the compiler.
  """
  @spec group_leader :: pid
  def group_leader do
    :erlang.group_leader
  end

  @doc """
  Sets the group leader of the given `pid` to `leader`.

  Inlined by the compiler.
  """
  @spec flag(process_flag, term) :: term
  defdelegate flag(flag, value), to: :erlang, as: :process_flag

  @doc """
  Sets the given `flag` to `value` for the given process `pid`.
