The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IBackgroundTaskQueue.cs 397B

12345678910111213141516
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading;
  5. using System.Threading.Tasks;
  6. namespace Teknik.Utilities
  7. {
  8. public interface IBackgroundTaskQueue
  9. {
  10. void QueueBackgroundWorkItem(Func<CancellationToken, Task> workItem);
  11. Task<Func<CancellationToken, Task>> DequeueAsync(
  12. CancellationToken cancellationToken);
  13. }
  14. }