Skip to content

Commit aad70dc

Browse files
LostKobrakaijosevalim
authored andcommitted
Remove misleading explanation of old genstage behaviour (#212)
1 parent 1630358 commit aad70dc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/consumer_supervisor.ex

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@ defmodule ConsumerSupervisor do
2323
Let's define a GenStage consumer as a `ConsumerSupervisor` that subscribes
2424
to a producer named `Producer` and starts a new process for each event
2525
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.
3228
3329
defmodule Consumer do
3430
use ConsumerSupervisor

0 commit comments

Comments
 (0)