15 lines
344 B
C#
15 lines
344 B
C#
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace RMuseum.Services
|
|
{
|
|
public interface IBackgroundTaskQueue
|
|
{
|
|
void QueueBackgroundWorkItem(Func<CancellationToken, Task> workItem);
|
|
|
|
Task<Func<CancellationToken, Task>> DequeueAsync(
|
|
CancellationToken cancellationToken);
|
|
}
|
|
}
|