divan/RMuseum/Services/IBackgroundTaskQueue.cs
Hamid Reza Mohammadi 5991d7fa5f Add project files.
2020-08-14 21:06:22 +04:30

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);
}
}