Asynchronously process each item in a SharedList or ArrayDataSource.
listAsyncForEach(tracklist, function (item, next) { ... next(); // pass true as first param if you want to break the loop }); Copy
listAsyncForEach(tracklist, function (item, next) { ... next(); // pass true as first param if you want to break the loop });
listAsyncForEach
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 after everything has been done.
Asynchronously process each item in a SharedList or ArrayDataSource.
Example
Method
listAsyncForEach