# std: Swap arguments in Thread.spawn · gitcafe/zig

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

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

Visibility: public

Requested revision: 566adc2510859eaa30eb7c318260c98e712daccf

Requested commit: 566adc2510859eaa30eb7c318260c98e712daccf

Commit: 566adc2510859eaa30eb7c318260c98e712daccf

Tree: 963d59321381ff91148c356ba761dcb5c246cf2f

Author: LemonBoy

Committer: LemonBoy

## Message

```
std: Swap arguments in Thread.spawn

Beside the new order being consistent with the ThreadPool API and making
more sense, this shuffling allows to write the context argument type in
terms of the startFn arguments, reducing the use of anytype (eg. less
explicit casts when using comptime_int parameters, yay).

Sorry for the breakage.

Closes #8082

```

## Parents

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

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