How to store multiple structures / elements in gen_server state?
I want to keep a link to the ets table, as well as a queue and a counter (integer).
thank
The gen_server state is just an arbitrary erlang member. Use what is most convenient (record, tuple, list, voice recorder, whatever)
Use record?
-record(state, {table, queue, counter}).
Source: https://habr.com/ru/post/1776776/More articles:Unable to import markdown due to COMMAND_LINE_LOGGING_LEVEL - pythonContentFlow: load AddOn when creating? - javascriptChanging the class of columns in a data frame - classUsing pyuno with my existing python installation - pythonCreating a WaveStream from PCM Samples - c #google maps mysql lat lng for javascript - javascriptLoad views using a tab element! - iphoneScript to transfer data from one source to another - scriptingTidhttp.connectTimeout not working! - delphiHow can you hide CSS from an iPhone, but not with other browsers? - cssAll Articles