Skip to content

Commit

Permalink
Update genstage.md (#2984)
Browse files Browse the repository at this point in the history
  • Loading branch information
avinayak committed May 19, 2024
1 parent f387282 commit b9068d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lessons/en/data_processing/genstage.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ end
```

The two most important parts to take note of here are `init/1` and `handle_demand/2`.
In `init/1` we set the initial state as we've done in our GenStage, but more importantly we label ourselves as a producer.
In `init/1` we set the initial state as we've done in our GenServer, but more importantly we label ourselves as a producer.
The response from our `init/1` function is what GenStage relies upon to classify our process.

The `handle_demand/2` function is where the majority of our producer is defined.
Expand Down

0 comments on commit b9068d8

Please sign in to comment.