- Switched to a slice-based queue with mutex and condition variable for better control over queuing and dispatching. - Removed fixed buffer size to handle dynamic queuing. - Enhanced shutdown logic to safely close the queue and wake up waiting goroutines.