cassinyspawner/swarmspawner.py
def executor(self, max_workers=1):
        """single global executor"""
        cls = self.__class__
        if cls._executor is None:
            cls._executor = ThreadPoolExecutor(max_workers)
        return cls._executor
def executor(self, max_workers=1):
        cls = self.__class__
        if cls._executor is None:
            cls._executor = ThreadPoolExecutor(max_workers)
        return cls._executor
def executor ( self , max_workers = 1 ) : cls = self . __class__ if cls . _executor is None : cls . _executor = ThreadPoolExecutor ( max_workers ) return cls . _executor
single global executor
single global executor