Multiple calls to a single function
Torben Hoffmann
torben.lehoff@REDACTED
Tue Apr 6 09:11:33 CEST 2021
Hi Shiva,
By "single static function" I assume you mean a regular function in Erlang,
right?
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.
Cheers,
Torben
On Tue, 6 Apr 2021 at 08:50, shiva gattu <shiva.krishna17892@REDACTED>
wrote:
> 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?
>
> Regards,
> Shiva
>
>
>
--
http://www.linkedin.com/in/torbenhoffmann
@LeHoff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210406/6215b5bb/attachment.htm>
More information about the erlang-questions
mailing list