File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,8 @@ defmodule ConsumerSupervisor do
23
23
Let's define a GenStage consumer as a `ConsumerSupervisor` that subscribes
24
24
to a producer named `Producer` and starts a new process for each event
25
25
received from the producer. Each new process will be started by calling
26
- `Printer.start_link/2`, which simply starts a task that will print the
27
- incoming event to the terminal. `Printer.start_link/2` is called because
28
- the `Printer` child specification defaults to starting a `Printer` with
29
- `Printer.start_link([])` (see the documentation for `Supervisor`)
30
- but the `ConsumerSupervisor` adds the event as another argument when starting
31
- the child, effectively calling `Printer.start_link([], event)`.
26
+ `Printer.start_link/1`, which simply starts a task that will print the
27
+ incoming event to the terminal.
32
28
33
29
defmodule Consumer do
34
30
use ConsumerSupervisor
You can’t perform that action at this time.
0 commit comments