mpf
mpf copied to clipboard
add option for event handlers to remove themselves when called
There are a lot of things in MPF, especially on the initial startup and init phases, that register for events that only need to be called once.
What about adding an option to the EventManager.add_handler() for remove_on_called which, if True, causes the event manager to remove that handler once it's been called?
Good idea