code: def emit(self, event_name, *args, **kwargs):
          
          listeners = list(self.listeners[event_name])
          if not listeners:
              return False
          for listener in listeners:
              result = listener(*args, **kwargs)
              if isawaitable(result):
                  ensure_future(result, loop=self.loop)
          return True
docs: Emit an event.