You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A callable for dispatching the handler, e.g. on a different
thread or on a GUI event loop. ``event`` is the object
created by the event factory.
The handler, target and dispatcher are defined by the user at the time when observe is called (observe being the future replacement of on_trait_change). In other words, they don't change throughout the lifetime of the "observe" action and only the user has a say in what they should be.
They can therefore be grouped together, making it easy for them to be passed around and compared.
This refactoring will not affect the user facing API.
The text was updated successfully, but these errors were encountered:
In the notifiers for observers, we have these pieces of information:
traits/traits/observers/_trait_event_notifier.py
Lines 44 to 57 in 4145b41
traits/traits/observers/_trait_event_notifier.py
Lines 69 to 72 in 4145b41
The
handler
,target
anddispatcher
are defined by the user at the time whenobserve
is called (observe
being the future replacement ofon_trait_change
). In other words, they don't change throughout the lifetime of the "observe" action and only the user has a say in what they should be.They can therefore be grouped together, making it easy for them to be passed around and compared.
This refactoring will not affect the user facing API.
The text was updated successfully, but these errors were encountered: