eventmanager
EventManager
¶
Source code in nebula/core/eventmanager.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
|
get_event_callbacks(event_name)
async
¶
Returns the callbacks for a specific event.
Source code in nebula/core/eventmanager.py
80 81 82 |
|
get_event_callbacks_names()
¶
Returns the names of the registered events.
Source code in nebula/core/eventmanager.py
84 85 86 |
|
register_event(handler_info, callback)
¶
Records a callback for a specific event.
Source code in nebula/core/eventmanager.py
46 47 48 49 50 51 |
|
trigger_event(source, message, *args, **kwargs)
async
¶
Triggers an event, executing all associated callbacks.
Source code in nebula/core/eventmanager.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
|
unregister_event(handler_info, callback)
¶
Unregisters a previously registered callback for an event.
Source code in nebula/core/eventmanager.py
53 54 55 56 |
|
event_handler(message_type, action)
¶
Decorator for registering an event handler.
Source code in nebula/core/eventmanager.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|