Package 

Class CloseableKt

    • Method Summary

      Modifier and Type Method Description
      final static <T extends SuspendingCloseable, R extends Any> R use(T $self, Function1<T, R> block) Executes the given block function on this resource and then closes it down correctly whether an exception is thrown or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • use

         final static <T extends SuspendingCloseable, R extends Any> R use(T $self, Function1<T, R> block)

        Executes the given block function on this resource and then closes it down correctly whether an exception is thrown or not.