wabbajack/Wabbajack.RateLimiter/IJob.cs

15 lines
407 B
C#
Raw Permalink 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; }
public ValueTask Report(long processedSize, CancellationToken token);
2022-05-27 05:41:11 +00:00
public void ReportNoWait(int processedSize);
public void ResetProgress();
2021-09-27 12:42:46 +00:00
}