Callback function for getNext() requests executed on collections. Receives the result via two parameters, the first one being the element itself (or null if the end of the collection has been reached) and the second one indicating that the call was successful.

Syntax

function(<object> element, <boolean> moved)