Skip to content

Latest commit

 

History

History
 
 

parallel

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

A concurrent parallel processor to help in running several async functions.

var stack = new Y.Parallel();

for (var i = 0; i < 15; i++) {
    Y.io('./api/json/' + i, {
        on: {
            success: stack.add(function() {
                Y.log('Done!');
            })
        }
    });
}

stack.done(function() {
    Y.log('All IO requests complete!');
});