# add std.Thread.Pool.spawnWg · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/a72292513e378159c542a785ca69f8111bacbdcf)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: a72292513e378159c542a785ca69f8111bacbdcf

Requested commit: a72292513e378159c542a785ca69f8111bacbdcf

Commit: a72292513e378159c542a785ca69f8111bacbdcf

Tree: aac9e20a88f90e9117b338bcc0e925c7ffa90182

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
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.

```

## Parents

- [a96b78c170ef0464e51a1c2fa226c51d49cfde04](https://git.cafe/gitcafe/zig/commit/a96b78c170ef0464e51a1c2fa226c51d49cfde04?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/a72292513e378159c542a785ca69f8111bacbdcf?format=markdown)
