class ZIOResource implements AutoCloseable {

  @Override
  public void close() {
    resource.toOption().ifPresent(release);
  }

    ZIOResource(Either<E, ? extends A> resource, Consumer1<? super A> release);

}