summaryrefslogtreecommitdiff
path: root/taskflow/engines/action_engine/executor.py
diff options
context:
space:
mode:
Diffstat (limited to 'taskflow/engines/action_engine/executor.py')
-rw-r--r--taskflow/engines/action_engine/executor.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/taskflow/engines/action_engine/executor.py b/taskflow/engines/action_engine/executor.py
index b7ff2f7..002068b 100644
--- a/taskflow/engines/action_engine/executor.py
+++ b/taskflow/engines/action_engine/executor.py
@@ -83,9 +83,9 @@ class TaskExecutor(object):
progress_callback=None):
"""Schedules task reversion."""
- @abc.abstractmethod
def wait_for_any(self, fs, timeout=None):
"""Wait for futures returned by this executor to complete."""
+ return async_utils.wait_for_any(fs, timeout=timeout)
def start(self):
"""Prepare to execute tasks."""
@@ -117,9 +117,6 @@ class SerialTaskExecutor(TaskExecutor):
fut.atom = task
return fut
- def wait_for_any(self, fs, timeout=None):
- return async_utils.wait_for_any(fs, timeout)
-
class ParallelTaskExecutor(TaskExecutor):
"""Executes tasks in parallel.
@@ -148,9 +145,6 @@ class ParallelTaskExecutor(TaskExecutor):
fut.atom = task
return fut
- def wait_for_any(self, fs, timeout=None):
- return async_utils.wait_for_any(fs, timeout)
-
def start(self):
if self._create_executor:
if self._max_workers is not None: