kmongo / org.litote.kmongo.coroutine / CoroutineListCollectionsPublisher / maxTime

maxTime

fun maxTime(maxTime: Long, timeUnit: TimeUnit): CoroutineListCollectionsPublisher<TResult> (source)

Sets the maximum execution time on the server for this operation.

Parameters

maxTime - the max time

timeUnit - the time unit, which may not be null

Return
this

Mongodb
.driver.manual reference/operator/meta/maxTimeMS/ Max Time