kvz/ratestate — pull request #2 by tim-kos (2014-12-10 08:39:28+00:00)
Title: Fire callbacks of all calls to setState

If someone provides a callback to a setState call, she/he relies on it getting executed, even if the write of the setState was skipped due to the ratelimiter. Callbacks should receive the state that was last written so that calling code knows what the current actual state is, and if it's the one from the setState() call that the calling code made, or from a later call to setState().