mixed
pq\Query\ExecutorInterface pq\Query\ExecutorInterface::execute(\pq\Query\WriterInterface $query, callable
$callback);Execute the query and process the result with the callback
.
NOTE:
This method should notify the observers twice.
Once before the query gets executed and can be retrieved by pq\Query\ExecutorInterface::getQuery().
And once after executing the query and the result can be retrieved by pq\Query\ExecutorInterface::getResult().
callable
$callback#callback
as function(pq\Result $result#)