Creates a wrapper function which when called will call the given function, but only a maximum amount of times as specified.
This function is valid in
v2.0.0 to v2.20.0.
This function has been downloaded 22 times.
The function which will only be called a limited amount of times.
The maximum amount of times the returned wrapper function can be called.
If given, once the call limit is reached every subsequent call to the returned wrapper function will throw an error with this message. If not given no error will be thrown.
A wrapper function that is limited in the amount of times it will call