swarm worker base

Former-commit-id: 0a69eeaa419dc6ec045e319954d24aaa6fcac59b
pull/160/head
Kye 2 years ago
parent 5ebfa6cf51
commit 2e30e42a12

@ -24,6 +24,11 @@ class AbstractSwarm(ABC):
"""Run the swarm""" """Run the swarm"""
pass pass
@abstractmethod
def arun(self):
"""Run the swarm Asynchronously"""
pass
@abstractmethod @abstractmethod
def add_worker(self, worker: "AbstractWorker"): def add_worker(self, worker: "AbstractWorker"):
"""Add a worker to the swarm""" """Add a worker to the swarm"""

Loading…
Cancel
Save