We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 280215c commit 4431ac6Copy full SHA for 4431ac6
lib/elixir/lib/process.ex
@@ -383,7 +383,7 @@ defmodule Process do
383
@type spawn_opt ::
384
:link
385
| :monitor
386
- | {:monitor, :erlang.monitor_option()}
+ | {:monitor, monitor_option()}
387
| {:priority, :low | :normal | :high}
388
| {:fullsweep_after, non_neg_integer}
389
| {:min_heap_size, non_neg_integer}
@@ -392,6 +392,10 @@ defmodule Process do
392
| {:message_queue_data, :off_heap | :on_heap}
393
@type spawn_opts :: [spawn_opt]
394
395
+ # TODO: Use :erlang.monitor_option() on Erlang/OTP 24+
396
+ @typep monitor_option ::
397
+ [alias: :explicit_unalias | :demonitor | :reply_demonitor, tag: term()]
398
+
399
@doc """
400
Spawns the given function according to the given options.
401
0 commit comments