code: def trigger_events(events, loop):
      
      for event in events:
          result = event(loop)
          if isawaitable(result):
              loop.run_until_complete(result)
docs: Trigger event callbacks (functions or async)
  
      :param events: one or more sync or async functions to execute
      :param loop: event loop