On 11/03/2014 10:29 PM, Robert Schroll wrote: > >> However, when a new query is sent to the scope, the old query has >> cancel() called on it. You may need to add additional code to close the >> connection to the server, or similar, when you receive the cancel call. > > Presumably a scope could set up a timeout and only send out the HTTP > request if it doesn't get a cancel() in that time. Any gotchas with > that approach?
Hardcoding this timeout will always delay the query even if the user "hit" return when entering the search query. Practically, especially on the phone, it might not have a very noticeable impact depending on the general speed of the service to be queried. Thomas -- Mailing list: https://launchpad.net/~ubuntu-phone Post to : ubuntu-phone@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp