• Asynchronously process each item in a SharedList or ArrayDataSource.

    Parameters

    • list: any

      Array to process

    • next_item_callback: any

      Callback for each item. Parameter 2 is the callback function to process the next item. Parameter 3 is item index.

    • Optional final_callback: any

      Final callback after everything has been done.

    Returns void

    Example

    listAsyncForEach(tracklist, function (item, next) {
    ...
    next(); // pass true as first param if you want to break the loop
    });

    Method

    listAsyncForEach