gen_server
Bengt Kleberg
Bengt.Kleberg@REDACTED
Wed Dec 17 09:46:21 CET 2003
Vance Shipley wrote:
...deleted
> init(_) ->
> {ok, gb_trees:empty()}.
>
> handle_call(Fun, From, State) ->
> Pid = proc_lib:spawn(Fun),
> {noreply, gb_trees:insert(Pid, From)}.
thank you for an example using a new module i did not know of. since
this is the first time i see gb_trees i am ofcourse very uncertain, but
perhaps it should have been:
{noreply, gb_trees:insert(Pid, From, State)}.
...deleted
bengt
More information about the erlang-questions
mailing list