[android-components](../../index.md) / [org.mozilla.telemetry.util](../index.md) / [IOUtils](index.md) / [safeClose](./safe-close.md)

# safeClose

`open static fun safeClose(stream: `[`Closeable`](https://developer.android.com/reference/java/io/Closeable.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/telemetry/src/main/java/org/mozilla/telemetry/util/IOUtils.java#L14)