This plugin provides a mechanism for running iteration loops asynchronously. How this works is that instead of directly calling the provided function, the function sets a very small timeout before calling it. I've run some tests on this class, and came to some interesting conclusions:
Object.each.async(obj,func[,bind[,time]]);
Array.each.async(arr,func[,bind[,time]]);
Both method work just like the normal each loops, but can also receive a 4th paramater - time - that tells the function how long to set the delay before execution (set to 0 milisecs as a default).
To see the results for yourself, run the demo with your console open. The results names mean:
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