Thing you can receive notifications from, as well as task-switch on
Note that every event source can control task switching, but not every
task switcher is an event source. Generators, for example, can control
task flow, but do not really produce any "events".
Event callbacks must not raise errors, as event sources are not required
to ensure that all callbacks are executed when a callback raises an error.
Methods
|
|
addCallback
|
|
addCallback
|
addCallback ( func )
Call func(source,event) the next time this event occurs
If this method is called from within a callback, func must not be
invoked until the next occurrence of the event.
Note also that callbacks will be called at most once for each time
they are registered; adding a callback does not result in an ongoing
"subscription" to the event source.
|
|