'Converts our _pending_requests list of deferreds into a DeferredList
Returns:
deflist (DeferredList): Contains all deferreds of pending requests.'

def empty_threadpool(self):

    self.pool.lock()
    if (self._pending_requests and self._echo_log):
        self._echo_log = False
        msg = 'Webserver    waiting    for    %i    requests    ...    '
        logger.log_info((msg % len(self._pending_requests)))
    return defer.DeferredList(self._pending_requests, consumeErrors=True)
