def terminate_all(wait=False):
        """
        Terminate all processes.

        :param wait: Wait for each to terminate
        :type wait: bool
        :return:
        :rtype:
        """
        for instance in Process.instances:
            if instance.is_running():
                instance.terminate(wait)
Terminate all processes.

        :param wait: Wait for each to terminate
        :type wait: bool
        :return:
        :rtype: