Searched refs:matcher_fn (Results 1 – 1 of 1) sorted by relevance
108 def register_callback(self, callback, matcher_fn=None): argument128 self.handlers.append((callback, matcher_fn))130 def unregister_callback(self, callback, matcher_fn=None): argument141 self.handlers.remove((callback, matcher_fn))152 for (callback, matcher_fn) in self.handlers:153 if not matcher_fn or matcher_fn(event):