code: def wait(self, task_id):
          
          data = {
              'action': 'wait',
              'id': task_id
          }
          self.__send_pyobj(data)
          task = self.__recv_pyobj(notimeout=True)
          return task
docs: Blocking method which wait end of task.
          It's prefered to use :class:`carotte.Task` object directly
  
          :param string task_id: Task ID
  
          :returns: Task dict
          :rtype: dict