nocarryr / python-dispatch

Lightweight event handling for Python
https://python-dispatch.readthedocs.io
MIT License
39 stars 3 forks source link

Global Dispatcher #18

Closed nocarryr closed 1 year ago

nocarryr commented 2 years ago

See #11 for context...

These are notes (mostly to myself) on how to best implement the proposed additions in the issue linked above:

Dispatcher.emit() method

pydispatch.register_event('signal_a') pydispatch.emit('signal_a')

Event object method

signal_b = pydispatch.register_event('signal_b') signal_b.emit()

nocarryr commented 1 year ago

Closed by #22