Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › Io › Threaded › recancelInner Private Function recancelInner Doc Source Private Function std.Io.Threaded.recancelInner
fn recancelInner () void File Io/Threaded.zig: 2376
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391 fn recancelInner () void {
const thread = Thread .current .?; // called `recancel` but was not canceled
switch (thread .status .fetchXor (.{
.cancelation = @fromBackingInt (@intCast (0b001 )),
.awaitable = .null ,
}, .monotonic ).cancelation ) {
.canceled => {},
.none => unreachable , // called `recancel` but was not canceled
.canceling => unreachable , // called `recancel` but cancelation was already pending
.parked => unreachable ,
.blocked => unreachable ,
.blocked_alertable => unreachable ,
.blocked_alertable_canceling => unreachable ,
.blocked_canceling => unreachable ,
}
}