Array to process
Callback for each item. Parameter 2 is the callback function to process the next item. Parameter 3 is item index.
Optional
final_callback: anyFinal callback after everything has been done.
listAsyncForEach(tracklist, function (item, next) {
...
next(); // pass true as first param if you want to break the loop
});
listAsyncForEach
Asynchronously process each item in a SharedList or ArrayDataSource.