Add/max

Adds a `max` field as the third argument so that more than one function
call can happen within the `wait` time.

Feel free to close this if you'd rather keep it somewhere else. We were
using this to throttle our server-side events and it seemed like a convenient
addition.