The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }