node_modules/when/monitor/throttledReporter.js
/**
		 * Throttles the given reporter such that it will report
		 * at most once every ms milliseconds
		 * @param {number} ms minimum millis between reports
		 * @param {function} reporter reporter to be throttled
		 * @return {function} throttled version of reporter
		 */
Throttles the given reporter such that it will report
at most once every ms milliseconds
@param {number} ms minimum millis between reports
@param {function} reporter reporter to be throttled
@return {function} throttled version of reporter
Throttles the given reporter such that it will report at most once every ms milliseconds @param { number } ms minimum millis between reports @param { function } reporter reporter to be throttled @return { function } throttled version of reporter
function throttleReporter(ms, reporter) {
			var timeout, toReport;
			return function(promises) {
				toReport = promises;
				if(timeout == null) {
					timeout = setTimeout(function() {
						timeout = null;
						reporter(toReport);
					}, ms);
				}
			};
		}
function throttleReporter ( ms , reporter ) { var timeout , toReport ; return function ( promises ) { toReport = promises ; if ( timeout == null ) { timeout = setTimeout ( function ( ) { timeout = null ; reporter ( toReport ) ; } , ms ) ; } } ; }
Throttles the given reporter such that it will report
 at most once every ms milliseconds
 @param {number} ms minimum millis between reports
 @param {function} reporter reporter to be throttled
 @return {function} throttled version of reporter
Throttles the given reporter such that it will report at most once every ms milliseconds @param { number } ms minimum millis between reports @param { function } reporter reporter to be throttled @return { function } throttled version of reporter