mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
notify_waiters drops the notification when every worker is between its DB reads and registering notified(); a task enqueued in that window sat until a stale timer fired. notify_one stores a permit, so the next worker to wait wakes immediately and re-leases. stop() still wakes all workers with notify_waiters.