10 lines
241 B
Python
10 lines
241 B
Python
|
class Signal:
|
||
|
"""
|
||
|
An event, with possible parameters.
|
||
|
|
||
|
Named 'signal' to avoid confusion with threading.Event
|
||
|
"""
|
||
|
|
||
|
def __init__(self, name: str, params: dict):
|
||
|
self.name = name
|
||
|
self.params = params
|