mirror of
https://github.com/status-im/nim-taskpools.git
synced 2026-08-27 17:31:08 +00:00
Fix peek+push schedule race cond (which causes a hang) by doing peek, push, then re-check whether the queue got drained in between. Remove `peek` and move the check inside `push` to keep the same perf.