Home | Trees | Indices | Help |
---|
|
Event support for emma
The events are addressed by Event class, with the event name, interface and identifier of the interface related to it. Any complement can be scubcribed and trigger any event.
Copyright: (c) 2011 hackmeeting http://sindominio.net/hackmeeting
Author: Ruben Pollan
Organization: hackmeeting http://sindominio.net/hackmeeting
Contact: meskio@sindominio.net
License: This program is free software; you can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://sam.zoy.org/projects/COPYING.WTFPL for more details.
|
|||
Event Event addressing class |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
_events = {}
|
|||
_events_lock = thread.allocate_lock()
|
|
Trigger an event on background Execute in a new thread each handler subscribed to the event.
Warning: event can not have any None value |
Run an event waiting for it's result Execute each handler subscribed to the event secuentially getting back the return value of each handler.
Warning: event can not have any None value |
Subscribe to an event Set a function to be call if an event is produced. The event can have some (or all) elements undefined, so it was call by any event with the defined elements equals to the subscribed event.
|
Unsubscribe from an event
Warning: it is not properly tested might have bugs |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun Feb 16 00:00:06 2014 | http://epydoc.sourceforge.net |