public static void EnsureEventQueueIsRunning() { Instance.keepRunning = true; if (!Instance.isRunning) { Instance.isRunning = true; GAThreading.ScheduleTimer(ProcessEventsIntervalInSeconds, "processEventQueue", ProcessEventQueue); } }
private static void ProcessEventQueue() { ProcessEvents("", true); if (Instance.keepRunning) { GAThreading.ScheduleTimer(ProcessEventsIntervalInSeconds, "processEventQueue", ProcessEventQueue); } else { Instance.isRunning = false; } }