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