Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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 Type Function

sendManyTimeout

Public Type Function
std.Io.net.Socket.sendManyTimeout
pub fn sendManyTimeout(
        s: *const Socket,
        io: Io,
        messages: []OutgoingMessage,
        flags: SendFlags,
        timeout: Io.Timeout,
    ) struct

File

Io/net.zig:1145
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
    pub fn sendManyTimeout(
        s: *const Socket,
        io: Io,
        messages: []OutgoingMessage,
        flags: SendFlags,
        timeout: Io.Timeout,
    ) struct { ?SendTimeoutError, usize } {
        const result = io.operateTimeout(.{ .net_send = .{
            .socket_handle = s.handle,
            .messages = messages,
            .flags = flags,
        } }, timeout) catch |err| return .{ err, 0 };
        return result.net_send;
    }