public static CompletableFuture<Void> resume(EventSet eventSet) {
    if (eventSet instanceof EventSetImpl && isAsyncEnabled()) {
      return ((EventSetImpl)eventSet).resumeAsync();
    }
    return toCompletableFuture(() -> eventSet.resume());
  }
public static CompletableFuture<Void> resume(EventSet eventSet)