add

open fun <T : Closeable?> add(@Nullable closeable: T): T

Insert a closeable to the set.

Inserting null is silently ignored.

Return

The inserted closeable.

Parameters

closeable

Closeable to insert.