hololinked.core.events.EventDispatcher
The actual worker which pushes the event. The separation is necessary between Event
and
EventDispatcher
to allow class level definitions of the Event
Source code in hololinked\core\events.py
Attributes
Functions
push
publish the event.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Any
|
payload of the event |
None
|
|
bool
|
serialize the payload before pushing, set to False when supplying raw bytes. |
True
|
|
zmq_clients: bool, default True
pushes event to RPC clients, irrelevant if |
{}
|
Source code in hololinked\core\events.py
receive_acknowledgement
Receive acknowlegement for event receive. When the timeout argument is present and not None, it should be a floating point number specifying a timeout for the operation in seconds (or fractions thereof).