Closed junpreetham closed 6 years ago
Good question! That's actually not yet implemented. Should be easy though. Just find and delete the corresponding entry in the vector. If you implement it, a pjll request would be nice!
I'm a bit of a noob as just started coding with the arduino. Do you mind posting an example/snippet? Thanks!
Find the element you want to erase using el = _events.find ('event')
and then delete it using _events.erase (el)
, in case an element was found. You can look up the std::map reference here http://www.cplusplus.com/reference/map/. Let me know if it works!
I forked this repo and added the remove event functionality. I'm glad to contribute, this repo really saves me.
feature has been added recently.
How do I turn off a listener for an event that has already been initialised using .on() ?