diff options
author | José Valim <jose.valim@dashbit.co> | 2021-12-22 10:17:08 +0100 |
---|---|---|
committer | José Valim <jose.valim@dashbit.co> | 2021-12-22 10:17:15 +0100 |
commit | 9ddd37cd1762121b503329902a5b95fc30fb7cec (patch) | |
tree | 43a62f63e51c43fed0298ef4bb6c785bf42f9f27 | |
parent | 8b2cd967615e9bf9b59ee97ae17ad0bc27928bf7 (diff) | |
download | elixir-9ddd37cd1762121b503329902a5b95fc30fb7cec.tar.gz |
Do not use type exclusive to Erlang/OTP 24+
-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. |