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. Public Function
The completion event result will be -ETIME if the timeout completed through expiration, 0 if the timeout completed after the specified number of events, or -ECANCELED if the timeout was removed before it expired.
io_uring timeouts use the CLOCK.MONOTONIC clock source.
Queues (but does not submit) an SQE to register a timeout operation. Returns a pointer to the SQE.
The timeout will complete when either the timeout expires, or after the specified number of events complete (if
countis greater than0).flagsmay be0for a relative timeout, orIORING_TIMEOUT_ABSfor an absolute timeout.The completion event result will be
-ETIMEif the timeout completed through expiration,0if the timeout completed after the specified number of events, or-ECANCELEDif the timeout was removed before it expired.io_uring timeouts use the
CLOCK.MONOTONICclock source.