Timeout.cs 479 B

1234567891011121314151617181920212223
  1. //
  2. // MainLoop.cs: IMainLoopDriver and MainLoop for Terminal.Gui
  3. //
  4. // Authors:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. using System;
  8. namespace Terminal.Gui;
  9. /// <summary>
  10. /// Provides data for timers running manipulation.
  11. /// </summary>
  12. public sealed class Timeout {
  13. /// <summary>
  14. /// Time to wait before invoke the callback.
  15. /// </summary>
  16. public TimeSpan Span;
  17. /// <summary>
  18. /// The function that will be invoked.
  19. /// </summary>
  20. public Func<bool> Callback;
  21. }