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. Private Function
The caller has canceled future. thread is the thread currently running that future. Inform thread of the cancelation if necessary, and wait for future to finish (indicated by num_completed being incremented from 0 to 1), while sending regular signals to thread if necessary for it to unblock from a cancelable syscall.
The caller has canceled
future.threadis the thread currently running that future. Informthreadof the cancelation if necessary, and wait forfutureto finish (indicated bynum_completedbeing incremented from 0 to 1), while sending regular signals tothreadif necessary for it to unblock from a cancelable syscall.