[erlang-questions] spawning processes

Vlad Dumitrescu vladdu55@REDACTED
Thu Aug 2 10:07:21 CEST 2012


Hi and welcome!

On Thu, Aug 2, 2012 at 10:00 AM, Pablo Vieytes <pablo.vb80@REDACTED> wrote:
> I don't know how to spawn a process with args without export it. is there
> any way to do that?
>
> For funs without args  you can do spawn(fun_in_the_same_mod/0). Another
> option is to use spawn(Module, Function, Args) but  Function should be
> exported although it's in the same mod.

Try spawn(fun() -> Function(Args) end)

regards,
Vlad



More information about the erlang-questions mailing list