Re: Multiple calls to a single function
Torben Hoffmann <[email protected]>
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Message-ID | <CABf3pCnQmFNu-c7xL=X6vaS1pso-BK6JoCQ9ruXaJbQEFS-grg@mail.gmail.com> |
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 <[email protected]> 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