Skip to content

Commit 4216261

Browse files
Fix callback spec
1 parent ca7c351 commit 4216261

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lib/gen_stage.ex

+4-7
Original file line numberDiff line numberDiff line change
@@ -885,18 +885,15 @@ defmodule GenStage do
885885

886886
@callback init(args :: term) ::
887887
{:producer, state}
888-
| {:producer, state, {:continue, term} | :hibernate}
889888
| {:producer, state, [producer_option]}
890-
| {:producer, state, {:continue, term} | :hibernate, [producer_option]}
889+
| {:producer, state, [producer_option], {:continue, term} | :hibernate}
891890
| {:producer_consumer, state}
892-
| {:producer_consumer, state, {:continue, term} | :hibernate}
893891
| {:producer_consumer, state, [producer_consumer_option]}
894-
| {:producer_consumer, state, {:continue, term} | :hibernate,
895-
[producer_consumer_option]}
892+
| {:producer_consumer, state, [producer_consumer_option],
893+
{:continue, term} | :hibernate}
896894
| {:consumer, state}
897-
| {:consumer, state, {:continue, term} | :hibernate}
898895
| {:consumer, state, [consumer_option]}
899-
| {:consumer, state, {:continue, term} | :hibernate, [consumer_option]}
896+
| {:consumer, state, [consumer_option], {:continue, term} | :hibernate}
900897
| :ignore
901898
| {:stop, reason :: any}
902899
when state: any

0 commit comments

Comments
 (0)