attachClosable

fun attachClosable(closeable: Closeable)

Maintains backward compatibility because Hprof.open returns a closeable. This allows consuming libraries to attach a closeable that will be closed whe Hprof is closed.