File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -203,14 +203,16 @@ defmodule GenServer do
203
203
The generated `child_spec/1` can be customized with the following options:
204
204
205
205
* `:id` - the child specification identifier, defaults to the current module
206
- * `:restart` - when the child should be restarted, defaults to `:permanent`
207
- * `:shutdown` - how to shut down the child, either immediately or by giving it time to shut down
206
+ * [`:restart`](`m:Supervisor#module-restart-values-restart`) - when the
207
+ child should be restarted, defaults to `:permanent`
208
+ * [`:shutdown`](`m:Supervisor#module-shutdown-values-shutdown`) - how to
209
+ shut down the child, either immediately or by giving it time to shut down
208
210
209
211
For example:
210
212
211
213
use GenServer, restart: :transient, shutdown: 10_000
212
214
213
- See the "Child specification" section in the `Supervisor` module for more
215
+ See the [ "Child specification"](`m:Supervisor#module-child_spec-1-function`) section in the `Supervisor` module for more
214
216
detailed information. The `@doc` annotation immediately preceding
215
217
`use GenServer` will be attached to the generated `child_spec/1` function.
216
218
Original file line number Diff line number Diff line change @@ -130,11 +130,11 @@ defmodule Supervisor do
130
130
to start the child process. This key is required.
131
131
132
132
* `:restart` - an atom that defines when a terminated child process
133
- should be restarted (see the "Restart values" section below).
133
+ should be restarted (see the [ "Restart values"](#module-restart-values-restart) section below).
134
134
This key is optional and defaults to `:permanent`.
135
135
136
136
* `:shutdown` - an integer or atom that defines how a child process should
137
- be terminated (see the "Shutdown values" section below). This key
137
+ be terminated (see the [ "Shutdown values"](#module-shutdown-values-shutdown) section below). This key
138
138
is optional and defaults to `5_000` if the type is `:worker` or
139
139
`:infinity` if the type is `:supervisor`.
140
140
You can’t perform that action at this time.
0 commit comments