swarm worker base

Former-commit-id: 35b5264e23
discord-bot-framework
Kye 2 years ago
parent 9aaa845135
commit bee0e63735

@ -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