diff --git a/src/module.zig b/src/module.zig index b676a3c7..2efd61b4 100644 --- a/src/module.zig +++ b/src/module.zig @@ -505,7 +505,7 @@ pub fn Modules(module_lists: anytype) type { }); } - pub fn init(m: *@This(), allocator: std.mem.Allocator) std.mem.Allocator.Error!void { + pub fn init(m: *@This(), allocator: std.mem.Allocator) (std.mem.Allocator.Error || std.Thread.SpawnError)!void { m.* = .{ .mods = undefined, .graph = undefined,