10 lines
298 B
C#
10 lines
298 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace LightlessSync.Services.PairProcessing;
|
|
|
|
[StructLayout(LayoutKind.Auto)]
|
|
public readonly record struct PairProcessingLimiterSnapshot(bool IsEnabled, int Limit, int InFlight, int Waiting)
|
|
{
|
|
public int Remaining => Math.Max(0, Limit - InFlight);
|
|
}
|