maxAwaitTime

fun maxAwaitTime(maxAwaitTime: Long, timeUnit: TimeUnit = TimeUnit.MILLISECONDS): AggregateIterable<T>

The maximum amount of time for the server to wait on new documents to satisfy a $changeStream aggregation.

A zero value will be ignored.

Return

the maximum await execution time in the given time unit

Parameters

maxAwaitTime

the max await time

timeUnit

the time unit to return the result in, defaults to Milliseconds