mpf icon indicating copy to clipboard operation
mpf copied to clipboard

add option for event handlers to remove themselves when called

Open toomanybrians opened this issue 7 years ago • 1 comments

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?

toomanybrians avatar Sep 25 '16 21:09 toomanybrians

Good idea

jabdoa2 avatar Sep 25 '16 21:09 jabdoa2