@classmethod
def set_task_queueing(cls, enabled: bool):
    """
        Enable queueing mode, which causes tasks to be queued until launched by
        calling `DispatcherInternal.flushQueuedInitialTasks`.

        Args:
            enabled (bool): Whether or not to queue tasks.
        """
    cls._queue_initial_tasks = enabled
