Processes the expensive getSubDevices call in batches. A singleton
instance is registered as a utility in zcml. The queue contains
NotifyItem instances. If notify_subdevices is called and an item exists
in the queue for the same device class, then the new service UID and
notify function are appended to the existing item. Once an item is moved
from the queue to _current_item member, it is being processed and further
notify_subdevices calls for the same device class will append a new item
to the queue.
|
|
|
notify_subdevices(self,
device_class,
service_uid,
notify_function) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|