using System;
using System.Threading;
using System.Threading.Tasks;
namespace RSecurityBackend.Services
{
///
/// background task queue
///
public interface IBackgroundTaskQueue
{
///
/// queue new task
///
///
void QueueBackgroundWorkItem(Func workItem);
///
/// get task from que
///
///
///
Task> DequeueAsync(
CancellationToken cancellationToken);
///
/// number of tasks
///
int Count { get; }
}
}