"""
This type stub file was generated by pyright.
"""

import asyncio
from abc import abstractmethod
from dataclasses import dataclass

"""
This type stub file was generated by pyright.
"""
@dataclass(kw_only=True)
class ListenerQueue[MessageType]:
  queue: asyncio.Queue[MessageType] = ...
  done: asyncio.Event
  @abstractmethod
  async def process(self, msg: MessageType):
    ...
  
  async def run(self):
    ...
  


