diff options
-rw-r--r-- | lib/elixir/lib/process.ex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/elixir/lib/process.ex b/lib/elixir/lib/process.ex index 5fc3bef27..c46f2c9b4 100644 --- a/lib/elixir/lib/process.ex +++ b/lib/elixir/lib/process.ex @@ -383,7 +383,7 @@ defmodule Process do @type spawn_opt :: :link | :monitor - | {:monitor, :erlang.monitor_option()} + | {:monitor, monitor_option()} | {:priority, :low | :normal | :high} | {:fullsweep_after, non_neg_integer} | {:min_heap_size, non_neg_integer} @@ -392,6 +392,10 @@ defmodule Process do | {:message_queue_data, :off_heap | :on_heap} @type spawn_opts :: [spawn_opt] + # TODO: Use :erlang.monitor_option() on Erlang/OTP 24+ + @typep monitor_option :: + [alias: :explicit_unalias | :demonitor | :reply_demonitor, tag: term()] + @doc """ Spawns the given function according to the given options. |