IScheduledItem.cs 752 B

1234567891011121314151617181920212223
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the Apache 2.0 License.
  3. // See the LICENSE file in the project root for more information.
  4. namespace System.Reactive.Concurrency
  5. {
  6. /// <summary>
  7. /// Represents a work item that has been scheduled.
  8. /// </summary>
  9. /// <typeparam name="TAbsolute">Absolute time representation type.</typeparam>
  10. public interface IScheduledItem<TAbsolute>
  11. {
  12. /// <summary>
  13. /// Gets the absolute time at which the item is due for invocation.
  14. /// </summary>
  15. TAbsolute DueTime { get; }
  16. /// <summary>
  17. /// Invokes the work item.
  18. /// </summary>
  19. void Invoke();
  20. }
  21. }