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

# listenAwait

`suspend fun NetServer.listenAwait(): NetServer`

Suspending version of method io.vertx.core.net.NetServer.listen

Return

NetServer

NOTE: This function has been automatically generated from io.vertx.core.net.NetServer using Vert.x codegen.

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

Suspending version of method io.vertx.core.net.NetServer.listen

### Parameters

`port` - the port to listen on

`host` - the host to listen on

Return

NetServer

NOTE: This function has been automatically generated from io.vertx.core.net.NetServer using Vert.x codegen.

`suspend fun NetServer.listenAwait(port: Int): NetServer`

Suspending version of method io.vertx.core.net.NetServer.listen

### Parameters

`port` - the port to listen on

Return

NetServer

NOTE: This function has been automatically generated from io.vertx.core.net.NetServer using Vert.x codegen.

`suspend fun NetServer.listenAwait(localAddress: SocketAddress): NetServer`

Suspending version of method io.vertx.core.net.NetServer.listen

### Parameters

`localAddress` - the local address to listen on

Return

NetServer

NOTE: This function has been automatically generated from io.vertx.core.net.NetServer using Vert.x codegen.