protected List<InternalDistributedMember> getAllMembers() {
    // Get a list of all of the members
    ResultCollector rs = getExecution().execute(functionContext -> {
      functionContext.getResultSender()
          .lastResult(InternalDistributedSystem.getAnyInstance().getDistributedMember());
    });
    return (List<InternalDistributedMember>) rs.getResult();
  }
Test the a result collector will timeout using the timeout provided
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/execute/FunctionServiceBase.java