Multiple calls to a single function
Tue Apr 6 09:11:33 CEST 2021
By "single static function" I assume you mean a regular function in Erlang,
All functions in Erlang are executed in a process, each gen_server is a
process, so if you simply call the function from within the gen_server it
will be executed in that process.
You mention using a pool, so I sense that there is an additional
requirement that you are not articulating.
On Tue, 6 Apr 2021 at 08:50, shiva gattu <shiva.krishna17892@REDACTED>
> Hi all,
> If multiple gen_server processes are sending multiple messages to a
> single static function. The static function will execute all messages
> without loss of a single message ?
> Is there any method to do that like using a pool?
> My requirement is multiple processes will send multiple messages to
> one function, that function will send that messages to the web.
> What is a simple way to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions