finish pq\Query
[mdref/mdref-pq-gateway] / pq-gateway / pq / Query / AsyncExecutor / execute.md
diff --git a/pq-gateway/pq/Query/AsyncExecutor/execute.md b/pq-gateway/pq/Query/AsyncExecutor/execute.md
new file mode 100644 (file)
index 0000000..29cbde9
--- /dev/null
@@ -0,0 +1,18 @@
+# Promise pq\Query\AsyncExecutor::execute(pq\Query\WriterInterface $query, callable $callback)
+
+Execute the query asynchronously and let the callback process the result on resolve.
+
+> ***NOTE:***  
+  This asynchronous executor implementation depends on [React/Promise](https://github.com/reactphp/promise).
+
+## Params:
+
+* pq\Query\Writer $query  
+  The query to execute.
+* callable $callback  
+  The result processing callback as function(pq\Result $result)
+
+## Returns:
+
+* mixed, the return value of the callback.
+