callback¶
-
Cauldron.ktl.procedural.callback(service, keyword, *args, **kwargs) [edit on github]¶ Request that a callback
functionbe invoked whenever a KTL broadcast is received for this keyword.The callback
functionshould accept as its sole argument a Keyword instance. Ifremoveis set to False, the designatedfunctionwill be removed from the set of active callbacks. Ifpreferredis set to True, this callback will be remembered as apreferredcallback, which gets invoked before all other non-preferred callbacks.callback()is typically used in conjunction withmonitor(), orpoll()if the specific KTL keyword does not support broadcasts.