vertx / io.vertx.kotlin.servicediscovery.types / MongoDataSource / getMongoClientAwait

# getMongoClientAwait

`suspend fun getMongoClientAwait(discovery: ServiceDiscovery, filter: JsonObject): MongoClient`

Suspending version of method io.vertx.servicediscovery.types.MongoDataSource.getMongoClient

### Parameters

`discovery` - The service discovery instance

`filter` - The filter, optional

Return

MongoClient

NOTE: This function has been automatically generated from io.vertx.servicediscovery.types.MongoDataSource using Vert.x codegen.

`suspend fun getMongoClientAwait(discovery: ServiceDiscovery, filter: (Record) -> Boolean): MongoClient`

Suspending version of method io.vertx.servicediscovery.types.MongoDataSource.getMongoClient

### Parameters

`discovery` - The service discovery instance

`filter` - The filter

Return

MongoClient

NOTE: This function has been automatically generated from io.vertx.servicediscovery.types.MongoDataSource using Vert.x codegen.

`suspend fun getMongoClientAwait(discovery: ServiceDiscovery, filter: JsonObject, consumerConfiguration: JsonObject): MongoClient`

Suspending version of method io.vertx.servicediscovery.types.MongoDataSource.getMongoClient

### Parameters

`discovery` - The service discovery instance

`filter` - The filter, optional

`consumerConfiguration` - the consumer configuration

Return

MongoClient

NOTE: This function has been automatically generated from io.vertx.servicediscovery.types.MongoDataSource using Vert.x codegen.