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 › Uring › async Private Function async Doc Source Private Function std.Io.Uring.async
fn async (
userdata : ?*anyopaque ,
result : []u8 ,
result_alignment : Alignment ,
context : []const u8 ,
context_alignment : Alignment ,
start : *const fn (context : *const anyopaque , result : *anyopaque ) void ,
) ?*std .Io .AnyFuture Params userdata : ?*anyopaque result : []u8 result_alignment : Alignment context : []const u8 context_alignment : Alignment start : *const fn (context : *const anyopaque , result : *anyopaque ) void File Io/Uring.zig: 1428
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441 fn async (
userdata : ?*anyopaque ,
result : []u8 ,
result_alignment : Alignment ,
context : []const u8 ,
context_alignment : Alignment ,
start : *const fn (context : *const anyopaque , result : *anyopaque ) void ,
) ?*std .Io .AnyFuture {
const ev : *Evented = @ptrCast (@alignCast (userdata ));
return concurrent (ev , result .len , result_alignment , context , context_alignment , start ) catch {
start (context .ptr , result .ptr );
return null ;
};
}