def D(self, event): print("D", self.counter, event) self.counter += 1 return event, DictEvent(name="D", counter=self.counter, parentcounter=event['counter'])
def trigger(self): print("I'm gonna trigger you so hard, listener!") return None, DictEvent(event='root cause')
def A(self): print("A", self.counter) self.counter += 1 return None, DictEvent(name="A", counter=self.counter)
def managed_to_listen(self, event): e = DictEvent(event) e['event2'] = 'I got the message, bro.' return event, e