Skip to content

Commit

Permalink
Fix callback spec
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenvanvliet committed May 11, 2023
1 parent ca7c351 commit 4216261
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/gen_stage.ex
Original file line number Diff line number Diff line change
Expand Up @@ -885,18 +885,15 @@ defmodule GenStage do

@callback init(args :: term) ::
{:producer, state}
| {:producer, state, {:continue, term} | :hibernate}
| {:producer, state, [producer_option]}
| {:producer, state, {:continue, term} | :hibernate, [producer_option]}
| {:producer, state, [producer_option], {:continue, term} | :hibernate}
| {:producer_consumer, state}
| {:producer_consumer, state, {:continue, term} | :hibernate}
| {:producer_consumer, state, [producer_consumer_option]}
| {:producer_consumer, state, {:continue, term} | :hibernate,
[producer_consumer_option]}
| {:producer_consumer, state, [producer_consumer_option],
{:continue, term} | :hibernate}
| {:consumer, state}
| {:consumer, state, {:continue, term} | :hibernate}
| {:consumer, state, [consumer_option]}
| {:consumer, state, {:continue, term} | :hibernate, [consumer_option]}
| {:consumer, state, [consumer_option], {:continue, term} | :hibernate}
| :ignore
| {:stop, reason :: any}
when state: any
Expand Down

0 comments on commit 4216261

Please sign in to comment.