Hello,
I'm trying to write a gwt application and it's very latency
sensitive. In order to get back to the client faster I would like to
respond to the client in the middle of my GWT implementation
function. Also I'm using appengine so I can't just spawn a thread to
do the work.
Normally in a servlet I would get called with a response object that
lets me write back to the client whenever I want:
doGet(request, response) {
... Do lots of time consuming work ...
response.write_output_to_client();
response.close_stream();
.. Do lots more time consuming work...
}
But in GWT the normal flow is to do all the work in your function and
the clients get the data at the very end.
I'm sure I could overload doGet/Post and hack something together, but
I was wondering if anyone had already tackled this? I'd really like
to get to something like:
void myRPCMethod(...normal method params...,
RPCResponder<RPCReturnType> responder) {
... Do lots of time consuming work ...
responder.respond(result);
... Do lots more time consuming work...
}
Thanks,
Matt
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.