jvm MongoDB request DSL • opensavvy.ktmongo.dsl.options • WithMaxTime • maxTime maxTime¶ open fun maxTime(timeout: ) Specifies a maximum amount of time for processing the request. collections.count { options { maxTime(10.seconds) } }