You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/yfr/.local/share/mise/installs/zig/master/lib/std/Io.zig:1041:17: error: error union is ignored
@call(.auto, function, args_casted.*);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/yfr/.local/share/mise/installs/zig/master/lib/std/Io.zig:1041:17: note: consider using 'try', 'catch', or 'if'
You need also change fn start signature in std.Io.VTable to return !void, so you actually could use try inside. But that raises question about groupAsync comment, that says:
This mode does not support results, await, or cancel.
I checked on this with @kristoff-it it totally makes sense that std.Io.Group.async/3 should be given a function which does not return an error union (which resolves the compile error).
Maybe we could improve the error message in this case?
Activity
floatdrop commentedon Nov 21, 2025
You need also change
fn startsignature instd.Io.VTableto return!void, so you actually could usetryinside. But that raises question aboutgroupAsynccomment, that says:Yet,
groupCancelexists.YannickFricke commentedon Nov 21, 2025
I checked on this with @kristoff-it it totally makes sense that std.Io.Group.async/3 should be given a function which does not return an error union (which resolves the compile error).
Maybe we could improve the error message in this case?