Esempio n. 1
0
 def _make_executor(self, max_workers):
     return futures.SynchronousExecutor()
Esempio n. 2
0
 def __init__(self, storage, notifier):
     super(RetryAction, self).__init__(storage, notifier)
     self._executor = futures.SynchronousExecutor()
Esempio n. 3
0
 def test_sync_executor_creation(self):
     with futures.SynchronousExecutor() as e:
         eng = self._create_engine(executor=e)
         self.assertIsInstance(eng._task_executor,
                               executor.ParallelThreadTaskExecutor)
Esempio n. 4
0
 def __init__(self, storage, notifier, walker_factory):
     self._storage = storage
     self._notifier = notifier
     self._walker_factory = walker_factory
     self._executor = futures.SynchronousExecutor()
Esempio n. 5
0
 def __init__(self):
     self._executor = futures.SynchronousExecutor()