code: async def promote(self, name, user, info=None):
          '''
          Promote the currently running task.
          '''
          task = asyncio.current_task()
  
          synt = getattr(task, '_syn_task', None)
  
          if synt is not None:
  
              if synt.root is None:
                  return synt
  
              synt.root.kids.pop(synt.iden)
              synt.root = None
              return synt
  
          return await s_task.Task.anit(self, task, name, user, info=infoync def promote(self, name, user, info=None):
          '''
          Promote the currently running task.
          '''
          task = asyncio.current_task()
  
          synt = getattr(task, '_syn_task', None)
  
          if synt is not None:
  
              if synt.root is None:
                  return synt
  
              synt.root.kids.pop(synt.iden)
              synt.root = None
              return synt
  
          return await s_task.Task.anit(self, task, name, user, info=info)
docs: Promote the currently running task.