Here is the proposed solution as a shameless plug ...
# stdlib
u
Here is the proposed solution as a shameless plug (i.e. fork) of DemonWav's project: <https://github.com/uluckas/kotlin-utils> https://github.com/uluckas/s2s-KotlinAutoClose