[erlang-bugs] Strange

Ahmed Omar spawn.think@REDACTED
Fri Oct 22 17:26:51 CEST 2010


http://www.erlang.org/doc/man/gen_server.html#cast-2
Sends an asynchronous request to the gen_server ServerRef and *returns
ok immediately,
ignoring if the destination node or gen_server does not exist*. The
gen_server will call Module:handle_cast/2 to handle the request

On Fri, Oct 22, 2010 at 5:15 PM, Fyodor Ustinov <ufm@REDACTED> wrote:

>  Erlang R14B (erts-5.8.1.1) [source] [rq:1] [async-threads:0]
> [kernel-poll:false]
>
> Eshell V5.8.1.1  (abort with ^G)
> 1> gen_server:call({global, 'nonexistent'}, aa).
> ** exception exit: {noproc,{gen_server,call,[{global,nonexistent},aa]}}
>     in function  gen_server:call/2
> 2> gen_server:cast({global, 'nonexistent'}, aa).
> ok
> 3>
>
> Why gen_server:cast return 'ok'?
>
> ________________________________________________________________
> erlang-bugs (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-bugs-unsubscribe@REDACTED
>
>


-- 
Best Regards,
- Ahmed Omar
http://nl.linkedin.com/in/adiaa
Follow me on twitter
@spawn_think <http://twitter.com/#!/spawn_think>


More information about the erlang-bugs mailing list