elixir-lang / gen_stage

Producer and consumer actors with back-pressure for Elixir
http://hexdocs.pm/gen_stage
1.48k stars 192 forks source link

Use the new child supervisor specifications for gen_event example #262

Closed vgsantoniazzi closed 3 years ago

vgsantoniazzi commented 3 years ago

The previous example was raising a deprecation warning.

warning: Supervisor.Spec.worker/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
examples/gen_event.exs: 98: App.start/0

warning: Supervisor.Spec.worker/3 is deprecated. Use the new child specifications outlined in the Supervisor module instead
Found at 4 locations:
examples/gen_event.exs: 99: App.start/0
examples/gen_event.exs: 100: App.start/0
examples/gen_event.exs: 101: App.start/0
examples/gen_event.exs: 102: App.start/0

josevalim commented 3 years ago

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart: