add std.Thread.Pool.spawnWg

This function accepts a WaitGroup parameter and manages the reference
counting therein. It also is infallible.

The existing `spawn` function is still handy when the job wants to
further schedule more tasks.
a72292513eAndrew Kelley committed on 5/4/2024, 3:58:02 AMparenta96b78c
6 files changedLine totals unavailable