Use GenStateMachine or :gen_statem?

I’m learning about / playing around with :gen_statem, and there are a number of posts on this forum and elsewhere that mention GitHub - ericentin/gen_state_machine: An idiomatic Elixir wrapper for gen_statem in OTP 19 (and above)..

However, the last commit was 5 years ago, and despite open issues and pull requests, there doesn’t seem to have been any activity since then.

Do people have experience using this wrapper in Elixir 1.18/OTP 27, or would it be best to stick to the underlying OTP library?

1 Like

The library is a very thin wrapper over the module in stdlib - the biggest thing it provided historically was logger message translation, but that was finally fixed in this Elixir PR last year.

6 Likes