<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def emit(self, name):
 """ Add a callback to the event named 'name'. Returns this object for chained 'on' calls. """

        for cb in self._event_list[name]:
            if isawaitable(cb):
                await cb
            else:
                cb()