vertx / io.vertx.kotlin.core.net / io.vertx.core.net.NetServer

Extensions for io.vertx.core.net.NetServer

closeAwait

suspend fun NetServer.closeAwait(): Unit

Like io.vertx.core.net.NetServer but supplying a handler that will be notified when close is complete.

listenAwait

suspend fun NetServer.listenAwait(): NetServer
suspend fun NetServer.listenAwait(port: Int, host: String): NetServer
suspend fun NetServer.listenAwait(port: Int): NetServer
suspend fun NetServer.listenAwait(localAddress: SocketAddress): NetServer

Like io.vertx.core.net.NetServer but providing a handler that will be notified when the server is listening, or fails.