docs: def listTasks(self, opts={}, queryOpts={}):
          """
          Get information about all Koji tasks.
  
          Calls "listTasks" XML-RPC.
  
          :param dict opts: Eg. {'state': [task_states.OPEN]}
          :param dict queryOpts: Eg. {'order' : 'priority,create_time'}
          :returns: deferred that when fired returns a list of Task objects.
          """
          opts['decode'] = True  # decode xmlrpc data in "request"
          data = yield self.call('listTasks', opts, queryOpts)
          tasks = []
          for tdata in data:
              task = Task.fromDict(tdata)
              task.connection = self
              tasks.append(task)
          defer.returnValue(tasks)