This class provides a means to simulate threading while iterating over data sets; heavy-duty, non-blocking iteration.
// A working demo has been included in the download. var create = new ThreadedLoop(5000, { 'chunk': 100, 'interval': 3, 'onStart': function() { status.set('text', 'Creating test array...'); }, 'onStop': function() { status.set('text', 'Test array created!'); }, 'onProcess': function(i) { buffer.include('item ' + (i + 1) + ' at index ' + i); } });
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus