[erlang-questions] Why doesn't gen_statem allow {next_event, ...} for state enter?

Torben Hoffmann torben.lehoff@REDACTED
Fri May 4 14:35:25 CEST 2018


Hi,

I have just been bitten by this:
state1(enter, ...) ->
    ...
            {next_state, state2, NewData,
             {next_event, internal, just_do_it}};

but that is not a legal action for an enter thingy.

Why is that so?

Cheers,
Torben
-- 
https://www.linkedin.com/in/torbenhoffmann/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180504/970eef95/attachment.htm>


More information about the erlang-questions mailing list