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