AsyncCursor

baja. AsyncCursor

new AsyncCursor()

Description:
  • An asynchronous generic cursor used for iteration.

    An Async Cursor may fetch its results asynchronously (i.e. across a network).

Source:

Extends

Methods

(abstract) each(func)

Description:
  • Iterate through the Cursor and call a function on every item.

Source:
Inherited From:
Parameters:
Name Type Description
func function

function called on every iteration with the
'value' being used as an argument.

(abstract) get()

Description:
  • Return the current item.

Source:
Inherited From:
Returns:

the cursor value (null if none available).