code: static <R> BiPredicate<R, Throwable> resultPredicateFor(R result) {
      return (t, u) -> Objects.equals(result, t);
    }
docs: Returns a predicate that evaluates whether the {@code result} equals an execution result.