using System;
using System.Threading;
using System.Threading.Tasks;
using Duplicati.Library.Interface;
namespace Duplicati.Library.Main.Backend;
#nullable enable
partial class BackendManager
{
///
/// Represents a pending QuotaInfo operation
///
///
/// Creates a new WaitForEmptyOperation
///
/// The execution context
/// The cancellation token
private class WaitForEmptyOperation(ExecuteContext context, CancellationToken cancelToken)
: PendingOperation(context, true, cancelToken)
{
///
/// The operation type
///
public override BackendActionType Operation => BackendActionType.WaitForEmpty;
///
/// Executes the operation
///
/// The backend to get the quota info from
/// The cancellation token
/// An awaitable task
public override Task ExecuteAsync(IBackend backend, CancellationToken cancelToken)
=> Task.FromResult(true);
}
}