docs: public Future<?> future() {
      Future<?> f = future;
      if (f == null) {
        throw new IllegalStateException(
            "Result.future() can only be called if type() is DETACH, type was: " + type);
      }
      return f;
    }