closeIfNotNull

fun closeIfNotNull(closeable: AutoCloseable?)

Attempt to close the specified resource, which is generously permitted to be null. Suppress any exception thrown by the underlying close operation.

Parameters

closeable

A closeable resource, or null.