Method: Mongo::Collection::View::Readable#max_await_time_ms

Defined in:
lib/mongo/collection/view/readable.rb

#max_await_time_ms(max = nil) ⇒ Integer, View

A cumulative time limit in milliseconds for processing get more operations on a cursor.

Examples:

Set the max await time ms value.

view.max_await_time_ms(500)

Parameters:

  • max (Integer) (defaults to: nil)

    The max time in milliseconds.

Returns:

  • (Integer, View)

    Either the max await time ms value or a new View.

Since:

  • 2.1.0



641
642
643
# File 'lib/mongo/collection/view/readable.rb', line 641

def max_await_time_ms(max = nil)
  configure(:max_await_time_ms, max)
end