Convenience helper that creates, configures, and starts a query in one call.
Equivalent to create().setQuery(predicate).setCallback(callback).start().
Call q.stop() from inside callback (when event === 'didFinish') to end
the search once you have what you need.
Convenience helper that creates, configures, and starts a query in one call. Equivalent to
create().setQuery(predicate).setCallback(callback).start(). Callq.stop()from insidecallback(whenevent === 'didFinish') to end the search once you have what you need.