-
public final class CloseableKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends SuspendingCloseable, R extends Any> Ruse(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. -
-
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.
-
-
-
-