Quote:
Originally Posted by bigdaddy424
Well now it works
I thought that the handler would return the same thing
Kind of irritating that you should do that inside the function
|
The function can not return anything useful because when it returns the results may not be available. The function is non-blocking, it puts a request saying that you want the query to be executed but does not wait for the execution to finish and instead delegates the work to a worker thread. This has the advantage of not blocking the main game thread if the connection takes a while, the query takes a long time to execute, etc. When the query eventually finishes executing, a notification is sent to let you know the results are ready.
If you want blocking behavior, consider using non-threaded natives(you probably should not).
__________________