namespace Umbraco.Cms.Infrastructure.HostedServices;
///
/// A Background Task Queue, to enqueue tasks for executing in the background.
///
///
/// Borrowed from https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-5.0
///
[Obsolete("This has been relocated into Umbraco.Cms.Core. This definition in Umbraco.Cms.Infrastructure is scheduled for removal in Umbraco 17.")]
public interface IBackgroundTaskQueue : Core.HostedServices.IBackgroundTaskQueue
{
///
/// Enqueue a work item to be executed in the background.
///
void QueueBackgroundWorkItem(Func workItem);
///
/// Dequeue the first item on the queue.
///
Task?> DequeueAsync(CancellationToken cancellationToken);
}