Run plugin code in a background thread?
Hello,
I have a plugin that I need to run in the background as it can take up to 10 seconds (Sometimes longer) for the process to complete, is there a way around the restrictions added to Tasks, Threadpool, Threads in general?
You could always patch it manually and etc but consider instead using unity coroutines. I doubt one method call takes 10s and you cannot avoid it. Otherwise call it once.
So it looks like there is no clean way around it at this time, ah well back to blocking.
For clarification as to why it's taking so long, I'm sending RCON commands to different servers which causes the plugin to block as I cannot push the call to another Thread.