Example use: For the callback to a click on a ui.Button, in order to prevent the button from being accidentally double-clicked and the callback running twice.
Returns the rate-limited function.
|Function||Function to call.|
|Number||After the function is called and executed, the number of milliseconds to delay before allowing an additional invocation of the function.|
|Object, optional||Object in whose scope to call the function.|