Package 

Class CloseableKt

  • All Implemented Interfaces:

    
    public final class CloseableKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
    • Constructor Detail

    • 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.