plusAssign

operator fun Closer.plusAssign(autoCloseable: AutoCloseable)(source)

Remember to close autoCloseable together with this closer.

Since

0.0.1-alpha.1

Throws

if this closer is closed.


operator fun Closer.plusAssign(suspendCloseable: SuspendCloseable)(source)

Remember to close suspendCloseable together with this closer.

Since

0.0.1-alpha.1

Throws

if a closer is attempted to be added to itself, or to another closer that contains it.

if this closer is closed.