buildOrClose
inline fun <C : Closeable, R> SelectorManager.buildOrClose(create: SelectorProvider.() -> C, setup: C.() -> R): R
Content copied to clipboard
Creates a NIO entity via create and calls setup on it. If any exception happens then the entity will be closed and an exception will be propagated.