- Home /
Question by
Arrekin · Mar 07, 2016 at 12:16 PM ·
functionsthreadshandlesdatabase handling
Networking -> RegisterHandler, on what thread functions are executed
After registering handler with NetworkServer.RegisterHandler(), on what thread registered functions are executed? On main thread or some other? There isnt anything about not using GameObject inside such functions so I guess, after receiving data unity waitinig for main thread and execute on it. I wondering about it because I want make database call after receiving some data and if registered functions are executed on main thread its not a good idea to send request to DB and wait for response. So should i create some async task/ thread for DB request or it is ok to do it inside registered function.
Comment