unaryPlus

abstract operator fun <T : AutoCloseable> T.unaryPlus(): T(source)

Remember to close this AutoCloseable together with this closer.

Since

0.0.1-alpha.1

Throws

if this closer is closed.


abstract operator fun <T : SuspendCloseable> T.unaryPlus(): T(source)

Remember to close this 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.