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 344f9d6 commit d76cc95Copy full SHA for d76cc95
lib/elixir/lib/gen_server.ex
@@ -377,10 +377,13 @@ defmodule GenServer do
377
@type name :: atom | {:global, term} | {:via, module, term}
378
379
@typedoc "Options used by the `start*` functions"
380
- @type options :: [debug: debug,
381
- name: name,
382
- timeout: timeout,
383
- spawn_opt: Process.spawn_opt]
+ @type options :: [option]
+
+ @typedoc "Option values used by the `start*` functions"
+ @type option :: {:debug, debug} |
384
+ {:name, name} |
385
+ {:timeout, timeout} |
386
+ {:spawn_opt, Process.spawn_opt}
387
388
@typedoc "debug options supported by the `start*` functions"
389
@type debug :: [:trace | :log | :statistics | {:log_to_file, Path.t}]
0 commit comments