Skip to content

Commit 4431ac6

Browse files
committed
Do not use type exclusive to Erlang/OTP 24+
1 parent 280215c commit 4431ac6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/elixir/lib/process.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ defmodule Process do
383383
@type spawn_opt ::
384384
:link
385385
| :monitor
386-
| {:monitor, :erlang.monitor_option()}
386+
| {:monitor, monitor_option()}
387387
| {:priority, :low | :normal | :high}
388388
| {:fullsweep_after, non_neg_integer}
389389
| {:min_heap_size, non_neg_integer}
@@ -392,6 +392,10 @@ defmodule Process do
392392
| {:message_queue_data, :off_heap | :on_heap}
393393
@type spawn_opts :: [spawn_opt]
394394

395+
# TODO: Use :erlang.monitor_option() on Erlang/OTP 24+
396+
@typep monitor_option ::
397+
[alias: :explicit_unalias | :demonitor | :reply_demonitor, tag: term()]
398+
395399
@doc """
396400
Spawns the given function according to the given options.
397401

0 commit comments

Comments
 (0)