Exemple #1
0
 public static void runInMain(SimpleActionDelegate fn)
 {
     runInMain(delegate(Async unused)
     {
         fn();
     });
 }
Exemple #2
0
 public static void runInMainIfNeeded(SimpleActionDelegate fn)
 {
     if (Thread.CurrentThread == s_MainThread)
     {
         fn();
         return;
     }
     runInMain(fn);
 }