kmongo / org.litote.kmongo.coroutine / CoroutineChangeStreamPublisher / maxAwaitTime

maxAwaitTime

fun maxAwaitTime(maxAwaitTime: Long, timeUnit: TimeUnit): CoroutineChangeStreamPublisher<TResult> (source)

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

Parameters

maxAwaitTime - the max await time. A zero value will be ignored, and indicates that the driver should respect the server's default value

timeUnit - the time unit, which may not be null

Return
this