throttle (target, method, args*, spacing, immediate) Arraypublic
Defined in packages/ember-metal/lib/run_loop.js:625
Ensure that the target method is never called more frequently than the specified spacing period. The target method is called immediately. function whoRan() {
console.log(this.name + ' ran.');
}
let myContext = { name: 'throttle' };
run.throttle(myContext, whoRan, 150);
// whoRan is invoked with context myContext
// console logs 'throttle ran.'
// 50ms passes
run.throttle