AstroFrame/tests/AstroFrame.Validation/DirectProgress.cs
2026-10-03 18:29:15 -07:00

7 lines
212 B
C#

using AstroFrame.Engine;
sealed class DirectProgress(Action<ProgressInfo> report):IProgress<ProgressInfo>
{
readonly object gate=new();
public void Report(ProgressInfo value){lock(gate)report(value);}
}