Class: AsyncCursor

baja. AsyncCursor


new AsyncCursor()

An asynchronous generic cursor used for iteration.

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

Extends

Methods


<abstract> each(func)

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

Parameters:
Name Type Description
func function

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

Inherited From:

<abstract> get()

Return the current item.

Inherited From:
Returns:

the cursor value (null if none available).