kmongo / org.litote.kmongo.coroutine / CoroutineFindPublisher / maxTime

maxTime

fun maxTime(maxTime: Long, timeUnit: TimeUnit): CoroutineFindPublisher<T> (source)

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

Parameters

maxTime - the max time

timeUnit - the time unit

Return
this

Mongodb
.driver.manual reference/method/cursor.maxTimeMS/#cursor.maxTimeMS Max Time