1234567891011121314151617181920212223242526272829303132333435363738394041 |
-
- #if ((!UNITY_EDITOR&&UNITY_WSA_10_0&&!ENABLE_IL2CPP))
- using System.Threading;
- using System.Threading.Tasks;
- namespace uPLibrary.Networking.M2Mqtt
- {
-
-
-
- public class Fx
- {
- public delegate void ThreadStart();
- public static void StartThread(ThreadStart threadStart)
- {
- Task.Factory.StartNew(o => ((ThreadStart)o)(), threadStart);
- }
- public static void SleepThread(int millisecondsTimeout) { Task.Delay(millisecondsTimeout).RunSynchronously(); }
- }
- }
- #endif
|