addCloseable

expect fun addCloseable(closeable: Closeable)

Add a new Closeable object that will be closed directly before onCleared is called.

If onCleared has already been called, the closeable will not be added, and will instead be closed immediately.

actual fun addCloseable(closeable: Closeable)