gen_state_machine icon indicating copy to clipboard operation
gen_state_machine copied to clipboard

README, removed applications section

Open juanpabloaj opened this issue 3 years ago • 1 comments

Maybe modify the application section is not necessary.

I tried this package on elixir 1.14.0 without modify the application section and it works.

I followed this tutorial

https://dockyard.com/blog/2020/01/31/state-timeouts-with-gen_statem

More details:

https://www.amberbit.com/blog/2017/9/22/elixir-applications-vs-extra_applications-guide/

juanpabloaj avatar Oct 25 '22 19:10 juanpabloaj

The library certainly works without adding it as an application, but what the application does is register the translator.

https://github.com/ericentin/gen_state_machine/blob/77776ec405364573ad63b1e07d1541ec057e40f9/lib/gen_state_machine/application.ex#L1-L11

This is to make it so that GenStateMachine termination messages are properly logged, see https://elixirforum.com/t/why-does-logger-translator-ignore-gen-statem-reports/37418.

lambdadog avatar Oct 16 '24 21:10 lambdadog