code: async def dist(self, mesg):
          '''
          Distribute an existing event tuple.
  
          Args:
              mesg ((str,dict)):  An event tuple.
  
          Example:
  
              await base.dist( ('foo',{'bar':'baz'}) )
  
          '''
          if self.isfini:
              return ()
  
          ret = []
          for func in self._syn_funcs.get(mesg[0], ()):
  
              try:
                  ret.append(await s_coro.ornot(func, mesg))
              except asyncio.CancelledError:
                  raise
              except Exception:
                  logger.exception('base %s error with mesg %s', self, mesg)
  
          for func in self._syn_links:
              try:
                  ret.append(await func(mesg))
              except asyncio.CancelledError:
                  raise
              except Exception:
                  logger.exception('base %s error with mesg %s', self, mesg)
  
          return reync def dist(self, mesg):
          '''
          Distribute an existing event tuple.
  
          Args:
              mesg ((str,dict)):  An event tuple.
  
          Example:
  
              await base.dist( ('foo',{'bar':'baz'}) )
  
          '''
          if self.isfini:
              return ()
  
          ret = []
          for func in self._syn_funcs.get(mesg[0], ()):
  
              try:
                  ret.append(await s_coro.ornot(func, mesg))
              except asyncio.CancelledError:
                  raise
              except Exception:
                  logger.exception('base %s error with mesg %s', self, mesg)
  
          for func in self._syn_links:
              try:
                  ret.append(await func(mesg))
              except asyncio.CancelledError:
                  raise
              except Exception:
                  logger.exception('base %s error with mesg %s', self, mesg)
  
          return ret
docs: Distribute an existing event tuple.
  
          Args:
              mesg ((str,dict)):  An event tuple.
  
          Example:
  
              await base.dist( ('foo',{'bar':'baz'}) )