public class SelectorManagerKt
| Modifier and Type | Method and Description |
|---|---|
static <C extends Closeable,R> |
buildOrClose(SelectorManager $receiver,
kotlin.jvm.functions.Function1<? super java.nio.channels.spi.SelectorProvider,? extends C> create,
kotlin.jvm.functions.Function1<? super C,? extends R> setup)
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.
|
public static <C extends Closeable,R> R buildOrClose(SelectorManager $receiver, kotlin.jvm.functions.Function1<? super java.nio.channels.spi.SelectorProvider,? extends C> create, kotlin.jvm.functions.Function1<? super C,? extends R> setup)
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.