[erlang-questions] Statem troubles

Steve Vinoski vinoski@REDACTED
Mon Oct 17 15:18:02 CEST 2016


On Mon, Oct 17, 2016 at 5:41 AM, Schneider <schneider@REDACTED> wrote:

> Dear list,
>
> I feel really stupid this morning, trying to get the gen_statem working.
> Even the code_lock example given in the gen_statem behaviour documentation
> doesn't work:
>

If you run your code on 19.1, it works fine. On 19.0 your init/1 should
return

{callback_mode(),locked,Data}

--steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161017/00313362/attachment.htm>


More information about the erlang-questions mailing list