Canceling awaited group causes panic?
Ziggit
Canceling awaited group causes panic?
I have this code that causes panic on group.cancel. I can’t see anything wrong with the code though. Am I doing something wrong? const std = @import("std"); const Io = std.Io; pub fn main(init: std.process.Init) !void { var threaded: Io.Threaded = .init(init.gpa, .{}); defer threaded.deinit(); testIt(threaded.io()); } fn testIt(io: Io) void { var idk: Idk = .{ .io = io, .group = .init }; idk.group.concurrent(io, Idk.run, .{&idk}) catch @panic("no concurrency"); io.sleep...
0 comments
No comments yet.