Skip to content

Commit 180a441

Browse files
Fix callback spec
1 parent 674c1dc commit 180a441

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lib/gen_stage.ex

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -909,18 +909,15 @@ defmodule GenStage do
909909

910910
@callback init(args :: term) ::
911911
{:producer, state}
912-
| {:producer, state, {:continue, term} | :hibernate}
913912
| {:producer, state, [producer_option]}
914-
| {:producer, state, {:continue, term} | :hibernate, [producer_option]}
913+
| {:producer, state, [producer_option], {:continue, term} | :hibernate}
915914
| {:producer_consumer, state}
916-
| {:producer_consumer, state, {:continue, term} | :hibernate}
917915
| {:producer_consumer, state, [producer_consumer_option]}
918-
| {:producer_consumer, state, {:continue, term} | :hibernate,
919-
[producer_consumer_option]}
916+
| {:producer_consumer, state, [producer_consumer_option],
917+
{:continue, term} | :hibernate}
920918
| {:consumer, state}
921-
| {:consumer, state, {:continue, term} | :hibernate}
922919
| {:consumer, state, [consumer_option]}
923-
| {:consumer, state, {:continue, term} | :hibernate, [consumer_option]}
920+
| {:consumer, state, [consumer_option], {:continue, term} | :hibernate}
924921
| :ignore
925922
| {:stop, reason :: any}
926923
when state: any

0 commit comments

Comments
 (0)