Exemple #1
0
 public override void RunThrowing <T>(IThrowingRunnable <T> runnable)
 {
     lock (Mutex)
     {
         runnable.Run();
     }
 }
Exemple #2
0
        public static IRunnable UnChecked(IThrowingRunnable <TException> throwingRunnable)
        {
            try
            {
                throwingRunnable.Run();
            }
            catch (Exception)
            {
                // nothing
            }

            return(throwingRunnable);
        }
Exemple #3
0
 public virtual void RunThrowing <T>(IThrowingRunnable <T> runnable) where T : Exception => runnable.Run();