Hacker News new | ask | show | jobs
by ethan_smith 341 days ago
You're absolutely right - the naive implementation has a logical flaw where the queue would always remain empty since tasks are only added when the queue is non-empty, creating a catch-22 situation where the queue can never grow.