# std.Io.Threaded: tune requestCancel · gitcafe/zig

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

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

Visibility: public

Requested revision: d60760d61e19018aa354fbb2f241444db88ca51b

Requested commit: d60760d61e19018aa354fbb2f241444db88ca51b

Commit: d60760d61e19018aa354fbb2f241444db88ca51b

Tree: 07e87ca4feedf01615c9090ed6c910c226431681

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io.Threaded: tune requestCancel

On a heavily loaded Linux 6.17.5, I observed a maximum of 20 attempts
not acknowledged before the timeout (including exponential backoff) was
sufficient, despite the heavy load.

The time wasted here sleeping is mitigated by the fact that, later on,
the system will likely wait for the canceled task, causing it to
indefinitely yield until the canceled task finishes, and the task must
acknowledge the cancel before it proceeds to that point.

```

## Parents

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

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