Inital Version
This commit is contained in:
commit
94cd6b984b
211 changed files with 4765 additions and 0 deletions
7
tests/AstroFrame.Validation/DirectProgress.cs
Normal file
7
tests/AstroFrame.Validation/DirectProgress.cs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
using AstroFrame.Engine;
|
||||
|
||||
sealed class DirectProgress(Action<ProgressInfo> report):IProgress<ProgressInfo>
|
||||
{
|
||||
readonly object gate=new();
|
||||
public void Report(ProgressInfo value){lock(gate)report(value);}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue