API Docs for: 3.8.0
Show:

yui-throttle Module

Throttles a call to a method based on the time between calls. This method is attached to the Y object and is documented there.

var fn = Y.throttle(function() {
    counter++;
});

for (i; i< 35000; i++) {
    out++;
    fn();
}