The async interface usually has a void return type, but it can optionally return a Request object, like this -
import com.google.gwt.http.client.Request; interface MyServiceAsync { public Request myMethod(String s, AsyncCallback<String> callback); } So, after you make your Async call, hold on to the Request object. When you wish to cancel the calls, invoke the request.cancel() method. --Sri On 15 April 2010 12:54, muhannad nasser <muhannadna...@gmail.com> wrote: > hi > > i am building a search text Field and i do an AsyncCallBack on > valueHasChanged event in the text field... so if i wrote 3 characters, i > will send three calls to the server but the valid one is the last one.... so > is there a way to cancel the first two calls and only get the last one..... > > thanks > > -- > ~~~With Regards~~~ > Muhannad Dar-Nasser > ~~Computer Systems Engineering~~ > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.