77c6ecfdffb23f4216f6c406e671f1d925f30418
[mdref/mdref-pq-gateway] / pq-gateway / pq / Query / AsyncExecutor / execute.md
1 # Promise pq\Query\AsyncExecutor::execute(pq\Query\WriterInterface $query, callable $callback)
2
3 Execute the query asynchronously and let the callback process the result on resolve.
4
5 ## Params:
6
7 * pq\Query\Writer $query
8 The query to execute.
9 * callable $callback
10 The result processing callback as function(pq\Result $result)
11
12 ## Returns:
13
14 * mixed, the return value of the callback.
15