IMainLoopCoordinator.cs 616 B

123456789101112131415161718192021222324
  1. namespace Terminal.Gui;
  2. /// <summary>
  3. /// Interface for main Terminal.Gui loop manager in v2.
  4. /// </summary>
  5. public interface IMainLoopCoordinator
  6. {
  7. /// <summary>
  8. /// Create all required subcomponents and boot strap.
  9. /// </summary>
  10. /// <returns></returns>
  11. public Task StartAsync ();
  12. /// <summary>
  13. /// Stops the input thread, blocking till it exits.
  14. /// Call this method only from the main UI loop.
  15. /// </summary>
  16. public void Stop ();
  17. /// <summary>
  18. /// Run a single iteration of the main UI loop
  19. /// </summary>
  20. void RunIteration ();
  21. }