wabbajack/Wabbajack.RateLimiter/IJob.cs

14 lines
373 B
C#
Raw Normal View History

2021-09-27 12:42:46 +00:00
using System.Threading;
using System.Threading.Tasks;
2021-10-23 16:51:17 +00:00
namespace Wabbajack.RateLimiter;
public interface IJob
2021-09-27 12:42:46 +00:00
{
public ulong ID { get; }
2021-10-23 16:51:17 +00:00
public long? Size { get; set; }
public long Current { get; }
public string Description { get; }
2021-10-23 16:51:17 +00:00
public ValueTask Report(int processedSize, CancellationToken token);
2022-05-27 05:41:11 +00:00
public void ReportNoWait(int processedSize);
2021-09-27 12:42:46 +00:00
}