Support for executing a callback only when a series of events have occurred.