Example #1
0
 private void RunExecuteExceptionSnail(Context ctx)
 {
     for (long i = 0; ; i++)
     {
         try
         {
             var executor = new SnailExecutor <string>(FuncToExecuteWithException);
             var result   = executor.Execute();
         }
         catch { ctx.Counter++; }
     }
 }
Example #2
0
 private void RunNullSnail(Context ctx)
 {
     for (long i = 0; ; i++)
     {
         try
         {
             var executor = new SnailExecutor <string>(null);
             var result   = executor.Execute();
         }
         catch { ctx.Counter++; }
     }
 }