timeoutMode

@Alpha(value = [Reason.CLIENT])
fun timeoutMode(timeoutMode: TimeoutMode): DistinctFlow<T>

Sets the timeoutMode for the cursor.

Requires the timeout to be set, either in the com.mongodb.MongoClientSettings, via MongoDatabase or via MongoCollection

Return

this

Since

5.2

Parameters

timeoutMode

the timeout mode