mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
Update event loop sendto error to SendToError
This commit is contained in:
parent
d96f5b38a3
commit
dd86e9d78c
@ -1262,7 +1262,7 @@ pub const Loop = struct {
|
||||
flags: u32,
|
||||
dest_addr: ?*const os.sockaddr,
|
||||
addrlen: os.socklen_t,
|
||||
) os.SendError!usize {
|
||||
) os.SendToError!usize {
|
||||
while (true) {
|
||||
return os.sendto(sockfd, buf, flags, dest_addr, addrlen) catch |err| switch (err) {
|
||||
error.WouldBlock => {
|
||||
|
Loading…
Reference in New Issue
Block a user