Gen_statem: looping with {next_event, internal, _} blocks calls

The actual work is something that takes 500ms, which is why I felt comfortable simulating it with a sleep :slight_smile:

And, in fact, it’s a synchronous call to another process. If I replace it with send_request…check_response, everything’s fine. It’s just harder to read the code – I quite liked the simplicity of the synchronous thing.

1 Like