IScheduledItem.cs 674 B

123456789101112131415161718192021
  1. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
  2. namespace System.Reactive.Concurrency
  3. {
  4. /// <summary>
  5. /// Represents a work item that has been scheduled.
  6. /// </summary>
  7. /// <typeparam name="TAbsolute">Absolute time representation type.</typeparam>
  8. public interface IScheduledItem<TAbsolute>
  9. {
  10. /// <summary>
  11. /// Gets the absolute time at which the item is due for invocation.
  12. /// </summary>
  13. TAbsolute DueTime { get; }
  14. /// <summary>
  15. /// Invokes the work item.
  16. /// </summary>
  17. void Invoke();
  18. }
  19. }