code: async def wasAdded(self, node):
          '''
          Fire the onAdd() callbacks for node creation.
          '''
          for func in self.onadds:
              try:
                  retn = func(node)
                  if s_coro.iscoro(retn):
                      await retn
              except asyncio.CancelledError:
                  raise
              except Exception:
                  logger.exception('error on onadd for %s' % (self.name,))
  
          await node.snap.core.triggers.runNodeAdd(nodeync def wasAdded(self, node):
          '''
          Fire the onAdd() callbacks for node creation.
          '''
          for func in self.onadds:
              try:
                  retn = func(node)
                  if s_coro.iscoro(retn):
                      await retn
              except asyncio.CancelledError:
                  raise
              except Exception:
                  logger.exception('error on onadd for %s' % (self.name,))
  
          await node.snap.core.triggers.runNodeAdd(node)
docs: Fire the onAdd() callbacks for node creation.