Use the wf:comet function as a gen_server
Reported by Fernando "Brujo" Benavides | May 19th, 2010 @ 11:14 AM
In nitrogen 1, I was able to turn the fun that's the argument to
wf:comet/1
into a gen_server, like this:
State = #state{...},
wf:comet(fun() ->
gen_server:enter_loop(?MODULE, [], State)
end).
Nitrogen 2.x doesn't let me do that anymore, because the fun
inside the comet loop is not started inside a proc_lib
hierarchy.
I really appreciate it if I could do what's shown
above because my comet function do behave as a
gen_server
and it's a pitty that I can not use
gen_server:call/2
and gen_server:cast/2
to send messages to it.
Thanks.
Comments and changes to this ticket
-
Rusty Klophaus June 29th, 2010 @ 08:00 PM
- Milestone cleared.
- Milestone order changed from 0 to 0
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Nitrogen Web Framework for Erlang