NoAvailableAlias / nano-signal-slot

Pure C++17 Signals and Slots
MIT License
407 stars 60 forks source link

How to remove all Slots from a Signal? #14

Closed offa closed 8 years ago

offa commented 8 years ago

Is there a way to remove all connected slots from a Signal?

NoAvailableAlias commented 8 years ago

A "removeAll" type method would need to be created for Nano::Observer that walks and deletes all nodes from the list. In the same process any Observers that aren't "this" would need to remove "this". I'm currently trying to gather time and evaluate planned changes for the first release, but for now I'll leave this issue open and get a "removeAll" method added.

NoAvailableAlias commented 8 years ago

A "removeAll" method has been added.

offa commented 8 years ago

Perfect, thanks! :+1: