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
|
|
|
{
|
2022-01-01 16:18:08 +00:00
|
|
|
public ulong ID { get; }
|
2021-10-23 16:51:17 +00:00
|
|
|
public long? Size { get; set; }
|
|
|
|
public long Current { get; }
|
2022-01-01 16:18:08 +00:00
|
|
|
public string Description { get; }
|
2023-05-07 20:32:18 +00:00
|
|
|
public ValueTask Report(long processedSize, CancellationToken token);
|
2022-05-27 05:41:11 +00:00
|
|
|
public void ReportNoWait(int processedSize);
|
2023-05-07 20:32:18 +00:00
|
|
|
public void ResetProgress();
|
2021-09-27 12:42:46 +00:00
|
|
|
}
|