Пример #1
0
 public static void CriticalSection(this SemaphoreSlim src, Action payload)
 {
     src.CriticalSection(() =>
     {
         payload();
         return(true);
     });
 }