# std.Io.Threaded: rework cancelation and groups · gitcafe/zig

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

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

Visibility: public

Requested revision: 0da5d5f15063455eaab9a350352914a062cf18e2

Requested commit: 0da5d5f15063455eaab9a350352914a062cf18e2

Commit: 0da5d5f15063455eaab9a350352914a062cf18e2

Tree: 9191420c06679315cbd9de47c71d685775339a16

Author: Matthew Lugg

Committer: Matthew Lugg

## Message

```
std.Io.Threaded: rework cancelation and groups

The goal of this internal refactor is to fix some bugs in cancelation
and allow group tasks to clean up their own resources eagerly. The
latter will become a guarantee of the `std.Io` interface, which is
important so that groups can be used to "detach" tasks.

This commit changes the API which POSIX system calls use internally (the
functions formerly called `beginSyscall` etc), but does not update the
usage sites yet.

```

## Parents

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

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