next

ReQL command: next

Command syntax

cursor.next([true])

Description

Get the next element in the cursor.

The optional unnamed argument specifies whether to wait for the next available element and how long to wait:

  • true: Wait indefinitely (the default).
  • false: Do not wait at all. If data is immediately available, it will be returned; if it is not available, a Timeout::Error will be raised.
  • number: Wait up to the specified number of seconds for data to be available before raising Timeout::Error.

The behavior of next will be identical with false, 登录查看完整内容