There is a risk that a downstream event implementation could cause the sequence to advance multiple times, e.g. by incorrectly calling its finished callback. This PR prevents that by checking whether we have already processed the event advancement when the finished callback is triggered.
There is a risk that a downstream event implementation could cause the sequence to advance multiple times, e.g. by incorrectly calling its
finished
callback. This PR prevents that by checking whether we have already processed the event advancement when thefinished
callback is triggered.