chain-service/chain_service/services/progress_action/wait_progress_action.py
2024-02-28 18:09:12 +07:00

11 lines
319 B
Python

from .base import BaseProgressActionService
from chain_service.database.models.progress_chain import WaitProgressAction
import asyncio
class WaitProgressActionService(BaseProgressActionService):
async def process(self, progress_action: WaitProgressAction):
await asyncio.sleep(progress_action.wait_for)