code: async def emit(self, name):
          
          for cb in self._event_list[name]:
              if isawaitable(cb):
                  await cb
              else:
                  cb()
docs: Add a callback to the event named 'name'.
          Returns this object for chained 'on' calls.