[erlang-questions] gen_statem and returning {next_event, internal, astate} from init/1
bengt e
cean.ebengt@REDACTED
Thu Oct 18 17:04:17 CEST 2018
Upgrading to 20.3.8.6 solved it.
On Thu, Oct 18, 2018 at 4:54 PM Andrew Thompson <andrew@REDACTED> wrote:
> On Thu, Oct 18, 2018 at 03:00:57PM +0200, bengt e wrote:
> > Greetings,
> >
> > Running tests on a gen_statem application they all fail. Directly after
> > callback init/1. I see
> > ** Reason for termination = error:{bad_action_from_state_function,
> > {next_events,internal,reconnect}}
> > This is init, BTW:
> > init() -> {ok, connect, #{}, {next_event, internal, reconnect}}.
> >
>
> I believe this will work on OTP 21.1, it might be worth trying it there.
>
> Andrew
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20181018/d83ea630/attachment.htm>
More information about the erlang-questions
mailing list