kmongo / org.litote.kmongo.coroutine / CoroutineDistinctPublisher / maxTime

maxTime

fun maxTime(maxTime: Long, timeUnit: TimeUnit): CoroutineDistinctPublisher<T> (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