@classmethod
def reset(cls):
    """
        Reset the dispatcher so the queue is cleared, and it is reset into
        queueing mode.
        """
    cls._queue_initial_tasks = True
    cls._preinit_task_queue = []
    cls._overflow_count = 0
