public void setAutoRun(final boolean shouldAutoRunTasks) {
    this.autoRun = shouldAutoRunTasks;
  }
Sets auto run.

@param shouldAutoRunTasks the should auto run tasks
testutil/src/main/java/org/hyperledger/besu/testutil/MockExecutorService.java