std.Io.Threaded.batchWait better fix for any_done

It is legal to call batchWait with already completed operations in the
ring. In such case, we need to avoid waiting in the syscall. The
any_done flag was a poor way of tracking state we already have: whether
the completion queue is empty.

This problem affects the posix poll implementation as well.

Thanks again to jacobly for finding the problem.
0ac63ff9dfAndrew Kelley committed on 1/30/2026, 8:10:02 PMparenta635d62
1 file changedLine totals unavailable