Files
pgsql-jellyfin/MediaBrowser.Controller/LibraryTaskScheduler/ILimitedConcurrencyLibraryScheduler.cs
T
wjones af1152b001 Refactor: standardize namespace and using directive style
Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
2026-02-20 16:26:53 -05:00

28 lines
1.2 KiB
C#

// <copyright file="ILimitedConcurrencyLibraryScheduler.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace MediaBrowser.Controller.LibraryTaskScheduler;
using System;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Model.Configuration;
/// <summary>
/// Provides a shared scheduler to run library related tasks based on the <see cref="ServerConfiguration.LibraryScanFanoutConcurrency"/>.
/// </summary>
public interface ILimitedConcurrencyLibraryScheduler
{
/// <summary>
/// Enqueues an action that will be invoked with the set data.
/// </summary>
/// <typeparam name="T">The data Type.</typeparam>
/// <param name="data">The data.</param>
/// <param name="worker">The callback to process the data.</param>
/// <param name="progress">A progress reporter.</param>
/// <param name="cancellationToken">Stop token.</param>
/// <returns>A task that finishes when all data has been processed by the worker.</returns>
Task Enqueue<T>(T[] data, Func<T, IProgress<double>, Task> worker, IProgress<double> progress, CancellationToken cancellationToken);
}