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
receiveManyTimeout
Public Type Function
std.Io.net.Socket.receiveManyTimeout
pubfnreceiveManyTimeout(
s: *constSocket,
io: Io,
/// Function assumes each element has initialized `control` field./// Initializing with `IncomingMessage.init` may be helpful.message_buffer: []IncomingMessage,
data_buffer: []u8,
flags: ReceiveFlags,
timeout: Io.Timeout,
) struct
Waits until at least one message is delivered, possibly returning more than one message. Connectionless.
Returns number of messages received, or error.Timeout if no message arrives early enough.
Waits until at least one message is delivered, possibly returning more than one message. Connectionless.
Returns number of messages received, or
error.Timeoutif no message arrives early enough.See also:
receivereceiveTimeout