@@ -187,7 +187,7 @@ defmodule Supervisor do
187
187
`GenServer` with a shutdown limit of 10 seconds (10_000 miliseconds),
188
188
one might do:
189
189
190
- use GenServer, shutdown: 10000
190
+ use GenServer, shutdown: 10_000
191
191
192
192
Let's understand what the `:shutdown` and `:restart` options control.
193
193
@@ -333,14 +333,14 @@ defmodule Supervisor do
333
333
The first argument given to `start_link/2` is a list of children which may
334
334
be either:
335
335
336
- * a module - such as `Stack`. In this case, it is equivalent to passing
337
- `{Stack, []}` (which means `Stack.child_spec/1` is invoked with an empty
338
- keywords list)
339
- * a tuple with a module as first element and the start argument as second -
340
- such as `{Stack, [:hello]}`. When such format is used, the supervisor
341
- will retrieve the child specification from the given module.
342
- * a map representing the child specification itself - such as the child
343
- specification map outlined in the previous section.
336
+ * a module - such as `Stack`. In this case, it is equivalent to passing
337
+ `{Stack, []}` (which means `Stack.child_spec/1` is invoked with an empty
338
+ keywords list)
339
+ * a tuple with a module as first element and the start argument as second -
340
+ such as `{Stack, [:hello]}`. When such format is used, the supervisor
341
+ will retrieve the child specification from the given module.
342
+ * a map representing the child specification itself - such as the child
343
+ specification map outlined in the previous section.
344
344
345
345
The second argument is a keyword list of options:
346
346
0 commit comments