max Await Time
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
max Await Time
the max await time
time Unit
the time unit to return the result in, defaults to Milliseconds