modeldb-main/backend/common/src/main/java/ai/verta/modeldb/common/futures/HandleConsumer.java
package ai.verta.modeldb.common.futures;

@FunctionalInterface
public interface HandleConsumer<X extends Exception> {
  void useHandle(Handle handle) throws X;

  default HandleCallback<Void, X> asCallback() {
    return (h) -> {
      this.useHandle(h);
      return null;
    };
  }
}
