public long getPendingFuturesCount() {
    return tasks.stream().filter(ExecutorTask::isPending).count();
  }
Gets pending futures count.

@return the pending futures count
testutil/src/main/java/org/hyperledger/besu/testutil/MockExecutorService.java