Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

Automate event handler disconnection #81

Open
coldfix opened this issue May 24, 2015 · 0 comments
Open

Automate event handler disconnection #81

coldfix opened this issue May 24, 2015 · 0 comments

Comments

@coldfix
Copy link
Member

coldfix commented May 24, 2015

When an object reaches its end of use, all its event handlers should be disconnected automatically. A couple of ideas how to achieve this

  • global registry with all event handler connections
  • when connecting a bound method, also keep track of event sources in the event sink object and remove these connections, when either object is invalidated
  • use a different event mechanism. These at least sound interesting (will have to evaluate later):
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant