using System.Threading; using System.Threading.Tasks; namespace MediaBrowser.Controller.ScheduledTasks; /// /// A no-op used when scan-leader election is disabled or no Redis /// connection is configured. Every instance is treated as the leader, preserving the default /// single-instance behavior where all periodic tasks run locally. /// public sealed class NullScanLeaderLease : IScanLeaderLease { /// public Task TryAcquireOrRenewAsync(CancellationToken cancellationToken = default) => Task.FromResult(true); }