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 › Kqueue › async Private Function async Doc Source Private Function std.Io.Kqueue.async
fn async (
userdata : ?*anyopaque ,
result : []u8 ,
result_alignment : std .mem .Alignment ,
context : []const u8 ,
context_alignment : std .mem .Alignment ,
start : *const fn (context : *const anyopaque , result : *anyopaque ) void ,
) ?*Io .AnyFuture Params userdata : ?*anyopaque result : []u8 result_alignment : std .mem .Alignment context : []const u8 context_alignment : std .mem .Alignment start : *const fn (context : *const anyopaque , result : *anyopaque ) void File Io/Kqueue.zig: 664
664
665
666
667
668
669
670
671
672
673
674
675
676 fn async (
userdata : ?*anyopaque ,
result : []u8 ,
result_alignment : std .mem .Alignment ,
context : []const u8 ,
context_alignment : std .mem .Alignment ,
start : *const fn (context : *const anyopaque , result : *anyopaque ) void ,
) ?*Io .AnyFuture {
return concurrent (userdata , result .len , result_alignment , context , context_alignment , start ) catch {
start (context .ptr , result .ptr );
return null ;
};
}