docs: public CompletableFuture<Revision> watchRepository(Repository repo, Revision lastKnownRevision,
                                                         String pathPattern, long timeoutMillis) {
          final CompletableFuture<Revision> result = repo.watch(lastKnownRevision, pathPattern);
          if (result.isDone()) {
              return result;
          }
  
          scheduleTimeout(result, timeoutMillis);
          return result;
      }