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

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