Proposed new feature or change
Remove the run and listen methods from QueueInterface, as these methods violate the Single Responsibility Principle. The QueueInterface should only be responsible for holding elements, not for dispatching and listening to them.
Proposed new feature or change
Remove the run and listen methods from QueueInterface, as these methods violate the Single Responsibility Principle. The QueueInterface should only be responsible for holding elements, not for dispatching and listening to them.