/// <summary> /// Runs @action on the thread that is processing events /// </summary> public void Invoke(Action action) { AddIdle(() => { action(); return(false); }); driver.Wakeup(); }
/// <summary> /// Runs @action on the thread that is processing events /// </summary> public void Invoke(Action action) { AddIdle(action); driver.Wakeup(); }
/// <summary> /// Stops the mainloop. /// </summary> public void Stop() { running = false; driver.Wakeup(); }