[erlang-questions] gen_statem 20.3 init/1 - {next_event, internal, initial_event}

Michael Nisi michael.nisi@REDACTED
Thu Mar 15 13:30:38 CET 2018


next_events?


> On 15. Mar 2018, at 12:23, Peter Morgan <peter.james.morgan@REDACTED> wrote:
> 
> ** Reason for termination = error:{bad_action_from_state_function,
>                                       {next_events,internal,initial_event}}
> ** Callback mode = handle_event_function
> ** Stacktrace =
> **  [{gen_statem,parse_actions_next_event,7,
>                  [{file,"gen_statem.erl"},{line,1299}]},
>      {gen_statem,loop_event_actions_list,10,
>                  [{file,"gen_statem.erl"},{line,1194}]},
>      {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]
> 
> 
> The docs seem to indicate that next_event remains valid on init/1 - http://erlang.org/doc/man/gen_statem.html#type-init_result.
> 
> Thanks
> Peter.
> 
> _______________________________________________
> 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/20180315/0d726f74/attachment.htm>


More information about the erlang-questions mailing list