[erlang-questions] Process scope variable

Imants Cekusins imantc@REDACTED
Wed Feb 18 22:40:23 CET 2015

here is an option in case someone runs into this same problem:

if the process is run within a gen_server / gen_fsm, any method can
call the gen_ to obtain or update the state:

gen_server:call(self(), Request)
gen_fsm:sync_send_all_state_event(self(), Event)

then there is no need to lug the state around.

not sure if this was mentioned.

More information about the erlang-questions mailing list